/* Copyright (C) 1992 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it without restriction.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  */

#include <stdio.h>
#ifdef AMIGA
/* For malloc, etc... */
#include <stdlib.h>
#include <string.h>
#endif

#ifdef DEBUG
extern int debug;
#endif

struct file_buffer
{
  char *name;
  int size;
  char *data;
};

extern struct file_buffer *read_file (), *read_stdin ();

/* Standard memory allocation routines.  */
#ifndef AMIGA
char *malloc ();
char *realloc ();
#endif

/* Similar, but abort with an error if out of memory (see globs.c).  */
char *xmalloc ();
char *xrealloc ();

/* mymemcpy is a C version of memcpy.  You may wish to use one of
   the following definitions for greater speed. */

#if 0
/* SysV-ish machines. */
extern char *memcpy ();
#define mymemcpy(from,to,len) (void) memcpy ((from),(to),(len))
#endif

#if 0
/* BSD-syle machines */
extern void bcopy ();
#define mymemcpy(to,from,len) bcopy ((from),(to),(len))
#endif

#ifdef AMIGA
#define mymemcpy(from,to,len) (void) memcpy ((from),(to),(len))
#endif

#ifndef AMIGA
char *mymemcpy ();
#endif
