home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / editor / gnuid16.sit / indent-1.6 / sys.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-23  |  1.1 KB  |  50 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.  
  12. #ifdef DEBUG
  13. extern int debug;
  14. #endif
  15.  
  16. /*    This funny kludge has its counterpart in indent.h
  17.     it has been done to prevent conflicts with another definition of false and true
  18.     in apple's ctype.h, while minimizing alterations to the code */
  19. #ifdef applec
  20. #define false 0
  21. #define true 1
  22. #endif
  23.  
  24. #ifdef    MPW
  25. #include <CursorCtl.h>
  26. #endif
  27.  
  28. #ifdef __GNUC__
  29. #define INLINE inline
  30. #else
  31. #define INLINE
  32. #endif
  33.  
  34. struct file_buffer
  35. {
  36.   char *name;
  37.   int size;
  38.   char *data;
  39. };
  40.  
  41. extern struct file_buffer *read_file (), *read_stdin ();
  42.  
  43. /* Standard memory allocation routines.  */
  44. char *malloc ();
  45. char *realloc ();
  46.  
  47. /* Similar, but abort with an error if out of memory (see globs.c).  */
  48. char *xmalloc ();
  49. char *xrealloc ();
  50.