home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / indent-1.9.1-base.tgz / indent-1.9.1-base.tar / fsf / indent / sys.h < prev    next >
C/C++ Source or Header  |  1994-01-29  |  2KB  |  74 lines

  1. /* Copyright (c) 1993,1994, Joseph Arceneaux.  All rights reserved.
  2.  
  3.    This file is subject to the terms of the GNU General Public License as
  4.    published by the Free Software Foundation.  A copy of this license is
  5.    included with this software distribution in the file COPYING.  If you
  6.    do not have a copy, you may obtain a copy by writing to the Free
  7.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  8.  
  9.    This software is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details. */
  13.  
  14. #include <stdio.h>
  15.  
  16. /* Values of special characters. */
  17. #define TAB '\t'
  18. #define EOL '\n'
  19. #define BACKSLASH '\\'
  20.  
  21. #ifdef DEBUG
  22. extern int debug;
  23. #endif
  24.  
  25. #ifdef __GNUC__
  26. #define INLINE __inline__
  27. #else
  28. #define INLINE
  29. #endif
  30.  
  31. #ifdef VMS
  32. # define ONE_DOT_PER_FILENAME 1
  33. # define NODIR 1
  34. # define PROFILE_FORMAT "%s%s"
  35. # define BACKUP_SUFFIX_STR    "_"
  36. # define BACKUP_SUFFIX_CHAR   '_'
  37. # define BACKUP_SUFFIX_FORMAT "%s._%d_"
  38. # define SYS_READ vms_read    /* Defined in io.c */
  39. # ifdef VAXC
  40. #  include <unixio.h>
  41. # endif
  42. #endif /* VMS */
  43.  
  44. #ifdef __MSDOS__
  45. # define ONE_DOT_PER_FILENAME 1
  46. # ifndef __GNUC__
  47. # define USG   1
  48. # endif
  49. # define NODIR 1
  50. #endif /* __MSDOS__ */
  51.  
  52. /* configure defines USG if it can't find bcopy */
  53.  
  54. #ifndef USG
  55. #define memcpy(dest,src,len) bcopy((src),(dest),len)
  56. #endif
  57.  
  58. struct file_buffer
  59. {
  60.   char *name;
  61.   unsigned long size;
  62.   char *data;
  63. };
  64.  
  65. extern struct file_buffer *read_file (), *read_stdin ();
  66.  
  67. /* Standard memory allocation routines.  */
  68. char *malloc ();
  69. char *realloc ();
  70.  
  71. /* Similar, but abort with an error if out of memory (see globs.c).  */
  72. char *xmalloc ();
  73. char *xrealloc ();
  74.