bem.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. #include <ctype.h>
  6. #include <signal.h>
  7. #include <system.h>
  8. #include <print.h>
  9. #include <em.h>
  10. #include <em_mes.h>
  11. /* Author: M.L. Kersten
  12. ** Here all the global objects are defined.
  13. */
  14. #include "symbols.h"
  15. #include "graph.h"
  16. #include "Lpars.h"
  17. #ifndef NORCSID
  18. # define RCS_BEM "$Id$"
  19. #endif
  20. #define MAXINT 32768
  21. #define MININT -32767
  22. /* #define EMINTSIZE "EM_WSIZE" */
  23. /* #define EMPTRSIZE "EM_PSIZE" */
  24. /* #define EMFLTSIZE "EM_DSIZE" */
  25. #define EMINTSIZE 4
  26. #define EMPTRSIZE 4
  27. #define EMFLTSIZE 8
  28. #define MAXPIECES 100
  29. #define MAXFILENAME 200
  30. #define CHANNEL 0
  31. #define THRESHOLD 40 /* for splitting blocks */
  32. #ifndef __STDC__
  33. #define void int /* Some C compilers don't know void */
  34. #endif
  35. extern int BEMINTSIZE, BEMPTRSIZE, BEMFLTSIZE;
  36. extern char *program; /* name of source program */
  37. extern char *inpfile; /* input tko compiler */
  38. extern char *outfile; /* output from compiler */
  39. extern char datfname[MAXFILENAME]; /* data statements file */
  40. extern File *emfile; /* EM output file */
  41. extern File *datfile; /* data file */
  42. extern File *yyin; /* Compiler input */
  43. extern int endofinput;
  44. extern int wflag;
  45. extern int hflag;
  46. extern int traceflag;
  47. extern int yydebug;
  48. extern int yylineno;
  49. extern int listing;
  50. extern int nolins;
  51. extern int threshold;
  52. extern int debug;
  53. extern int tronoff;
  54. extern label err_goto_label;
  55. extern int dataused;
  56. extern Linerecord *currline;
  57. extern char *itoa();
  58. extern char *salloc();
  59. extern char *strcpy();
  60. extern char *strcat();
  61. #if __STDC__
  62. #include <stdlib.h>
  63. #else
  64. extern char *malloc();
  65. #endif