bem.h 1.7 KB

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