home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 406_01 / atoc / atoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-09  |  1.5 KB  |  53 lines

  1. /*=========================================================================
  2.  
  3.     ATOC main header file
  4.  
  5. =========================================================================*/
  6.  
  7. #define VERSION        "v1.08"
  8.  
  9. #define TRUE        1
  10. #define FALSE        0
  11. #define PRIVATE        static
  12.  
  13. #define MAXLINELENGTH    1024
  14.  
  15. #if 'A' == 0x41
  16.  #define ASCII
  17. #endif
  18. #if 'A' == 0xC1
  19.  #define EBCDIC
  20. #endif
  21.  
  22.  
  23. /*-------------------------------------------------------------------------
  24. global variables
  25. -------------------------------------------------------------------------*/
  26. #ifdef MAIN_MODULE
  27.  #define GLOBAL
  28. #else
  29.  #define GLOBAL extern
  30. #endif
  31.  
  32. GLOBAL int exitcode;            /* ATOC exit code */
  33.  
  34. GLOBAL int enumflag;            /* convert enums */
  35. GLOBAL int includeflag;            /* include include files */
  36. GLOBAL int localonlyflag;        /* include local include files only */
  37. GLOBAL int trigraphflag;        /* convert trigraphs */
  38. GLOBAL int voidflag;            /* convert voids */
  39.  
  40. GLOBAL int linenumber;            /* source file line number */
  41. GLOBAL char filename[ 80 ];        /* source file name "filename" */
  42. GLOBAL char compiledate[ 16 ];        /* compile date "Mmm dd yyyy" */
  43. GLOBAL char compiletime[ 16 ];        /* compile time "hh:mm:ss" */
  44.  
  45. GLOBAL char buffer[ MAXLINELENGTH ];    /* input line buffer */
  46.  
  47. GLOBAL int decflag;            /* TRUE when there are declarations */
  48.                     /* waiting to be output */
  49.  
  50. GLOBAL int endifcount;            /* count of #endifs waiting to be output */
  51.  
  52. /*=======================================================================*/
  53.