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