home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v92.tgz / v92.tar / v92 / src / iconc / cglobals.h < prev    next >
C/C++ Source or Header  |  1996-03-22  |  2KB  |  45 lines

  1. /*
  2.  *  Global variables.
  3.  */
  4.  
  5. extern char *runtime;
  6.  
  7. #ifndef Global
  8. #define Global extern
  9. #define Init(v)
  10. #endif                    /* Global */
  11.  
  12. /*
  13.  * Variables related to command processing.
  14.  */
  15. Global char *progname    Init("iconc");    /* program name for diagnostics */
  16.  
  17. Global int debug_info    Init(0);    /* -fd, -t: generate debugging info */
  18. Global int err_conv     Init(0);    /* -fe: support error conversion */
  19. Global int largeints    Init(0);    /* -fl: support large integers */
  20. Global int line_info    Init(0);    /* -fn, -fd, -t: generate line info */
  21. Global int m4pre    Init(0);    /* -m: use m4 preprocessor? [UNIX] */
  22. Global int str_inv    Init(0);    /* -fs: enable full string invocation */
  23. Global int trace    Init(0);    /* -t: initial &trace value */
  24. Global int uwarn    Init(0);    /* -u: warn about undefined ids? */
  25. Global int just_type_trace Init(0);    /* -T: suppress C code */
  26. Global int verbose      Init(1);    /* -s, -v: level of verbosity */
  27. Global int pponly       Init(0);    /* -E: preprocess only */
  28.  
  29. Global char *c_comp     Init(CComp);    /* -C: C compiler */
  30. Global char *c_opts     Init(COpts);    /* -p: options for C compiler */
  31.  
  32. /*
  33.  * Flags turned off by the -n option.
  34.  */
  35. Global int opt_cntrl    Init(1);    /* do control flow optimization */
  36. Global int opt_sgnl    Init(1);    /* do signal handling optimizations */
  37. Global int do_typinfer    Init(1);    /* do type inference */
  38. Global int allow_inline Init(1);    /* allow expanding operations in line */
  39.  
  40. /*
  41.  * Files.
  42.  */
  43. Global FILE *codefile    Init(0);    /* C code output - primary file */
  44. Global FILE *inclfile    Init(0);    /* C code output - include file */
  45.