home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / indent / sys.h < prev    next >
C/C++ Source or Header  |  1999-05-21  |  1KB  |  58 lines

  1. /* Copyright (C) 1992 Free Software Foundation, Inc.
  2.  
  3.    This program is free software; you can redistribute it and/or modify
  4.    it without restriction.
  5.  
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  */
  9.  
  10. #include <stdio.h>
  11. #ifdef AMIGA
  12. /* For malloc, etc... */
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #endif /* AMIGA */
  16.  
  17. /* Values of special characters. */
  18. #define TAB '\t'
  19. #define EOL '\n'
  20. #define BACKSLASH '\\'
  21.  
  22. #ifdef DEBUG
  23. extern int debug;
  24. #endif
  25.  
  26. #ifdef __GNUC__
  27. #define INLINE __inline__
  28. #else
  29. #define INLINE
  30. #endif
  31.  
  32. /* configure defines USG if it can't find bcopy */
  33.  
  34. #ifndef AMIGA
  35. #ifndef USG
  36. #define memcpy(dest,src,len) bcopy((src),(dest),len)
  37. #endif
  38. #endif /* !AMIGA */
  39.  
  40. struct file_buffer
  41. {
  42.   char *name;
  43.   unsigned long size;
  44.   char *data;
  45. };
  46.  
  47. extern struct file_buffer *read_file (), *read_stdin ();
  48.  
  49. /* Standard memory allocation routines.  */
  50. #ifndef AMIGA
  51. char *malloc ();
  52. char *realloc ();
  53. #endif /* !AMIGA */
  54.  
  55. /* Similar, but abort with an error if out of memory (see globs.c).  */
  56. char *xmalloc ();
  57. char *xrealloc ();
  58.