1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1984-12-17 15:13:39 +00:00
|
|
|
|
|
|
|
extern int wordsize;
|
|
|
|
extern int pointersize;
|
|
|
|
extern int nregs;
|
|
|
|
extern int nprops;
|
|
|
|
extern int ntokens;
|
|
|
|
extern int nsets;
|
|
|
|
extern int ninstr;
|
|
|
|
extern int empatlen;
|
1989-11-08 17:14:52 +00:00
|
|
|
extern int emrepllen;
|
|
|
|
extern int tokrepllen;
|
1984-12-17 15:13:39 +00:00
|
|
|
extern int emmnem[];
|
|
|
|
extern int empatexpr;
|
|
|
|
extern int codeindex;
|
|
|
|
extern int tokpatlen;
|
1989-11-08 17:14:52 +00:00
|
|
|
extern int maxtokpatlen;
|
|
|
|
extern int maxempatlen;
|
|
|
|
extern int maxemrepllen;
|
|
|
|
extern int maxtokrepllen;
|
1984-12-17 15:13:39 +00:00
|
|
|
extern int tokpatro[];
|
|
|
|
extern int tokpatset[];
|
|
|
|
extern int nallreg;
|
|
|
|
extern int allreg[];
|
|
|
|
extern int cursetno;
|
|
|
|
extern int allsetno;
|
|
|
|
extern int inproc;
|
|
|
|
extern int callproc;
|
1989-11-09 11:04:18 +00:00
|
|
|
extern int procarg[];
|
1984-12-17 15:13:39 +00:00
|
|
|
extern int fc1,fc2,fc3,fc4;
|
|
|
|
extern int maxmembers;
|
|
|
|
extern int regclass;
|
|
|
|
extern int maxtokensize;
|
1989-11-09 11:04:18 +00:00
|
|
|
extern int nprocargs, maxprocargs;
|
1990-09-04 17:19:04 +00:00
|
|
|
extern int use_tes;
|
1984-12-17 15:13:39 +00:00
|
|
|
|
Cut down some clang warnings
Edit C code to reduce warnings from clang. Most warnings are for
implicit declarations of functions, but some warnings want me to add
parentheses or curly braces, or to cast arguments for printf().
Make a few other changes, like declaring float_cst() in h/con_float to
be static, and using C99 bool in ego/ra/makeitems.c and
ego/share/makecldef.c. Such changes don't silence warnings; I make
such changes while I silence warnings in the same file. In
float_cst(), rename parameter `str` to `float_str`, so it doesn't
share a name with the global variable `str`.
Remove `const` from `newmodule(const char *)` in mach/proto/as to
silence a warning. I wrongly added the `const` in d347207.
For warnings about implicit declarations of functions, the fix is to
declare the function before calling it. For example, my OpenBSD
system needs <sys/wait.h> to declare wait().
In util/int, add "whatever.h" to declare more functions. Remove old
declarations from "mem.h", to prefer the newer declarations of the
same functions in "data.h" and "stack.h".
2019-10-23 20:06:36 +00:00
|
|
|
/* genenerated files */
|
|
|
|
extern void enterkeyw(void);
|
|
|
|
extern int yyparse(void);
|
|
|
|
|
|
|
|
/* emlookup.c */
|
|
|
|
extern void initemhash(void);
|
|
|
|
|
|
|
|
/* error.c */
|
2013-05-10 11:04:21 +00:00
|
|
|
extern void fatal(const char* s, ...);
|
Cut down some clang warnings
Edit C code to reduce warnings from clang. Most warnings are for
implicit declarations of functions, but some warnings want me to add
parentheses or curly braces, or to cast arguments for printf().
Make a few other changes, like declaring float_cst() in h/con_float to
be static, and using C99 bool in ego/ra/makeitems.c and
ego/share/makecldef.c. Such changes don't silence warnings; I make
such changes while I silence warnings in the same file. In
float_cst(), rename parameter `str` to `float_str`, so it doesn't
share a name with the global variable `str`.
Remove `const` from `newmodule(const char *)` in mach/proto/as to
silence a warning. I wrongly added the `const` in d347207.
For warnings about implicit declarations of functions, the fix is to
declare the function before calling it. For example, my OpenBSD
system needs <sys/wait.h> to declare wait().
In util/int, add "whatever.h" to declare more functions. Remove old
declarations from "mem.h", to prefer the newer declarations of the
same functions in "data.h" and "stack.h".
2019-10-23 20:06:36 +00:00
|
|
|
extern void error(const char* s, ...);
|
2019-05-10 17:17:24 +00:00
|
|
|
extern int tabovf(char *string);
|
Cut down some clang warnings
Edit C code to reduce warnings from clang. Most warnings are for
implicit declarations of functions, but some warnings want me to add
parentheses or curly braces, or to cast arguments for printf().
Make a few other changes, like declaring float_cst() in h/con_float to
be static, and using C99 bool in ego/ra/makeitems.c and
ego/share/makecldef.c. Such changes don't silence warnings; I make
such changes while I silence warnings in the same file. In
float_cst(), rename parameter `str` to `float_str`, so it doesn't
share a name with the global variable `str`.
Remove `const` from `newmodule(const char *)` in mach/proto/as to
silence a warning. I wrongly added the `const` in d347207.
For warnings about implicit declarations of functions, the fix is to
declare the function before calling it. For example, my OpenBSD
system needs <sys/wait.h> to declare wait().
In util/int, add "whatever.h" to declare more functions. Remove old
declarations from "mem.h", to prefer the newer declarations of the
same functions in "data.h" and "stack.h".
2019-10-23 20:06:36 +00:00
|
|
|
|
|
|
|
/* output.c */
|
2019-05-10 17:17:24 +00:00
|
|
|
extern void errorexit(void);
|
Cut down some clang warnings
Edit C code to reduce warnings from clang. Most warnings are for
implicit declarations of functions, but some warnings want me to add
parentheses or curly braces, or to cast arguments for printf().
Make a few other changes, like declaring float_cst() in h/con_float to
be static, and using C99 bool in ego/ra/makeitems.c and
ego/share/makecldef.c. Such changes don't silence warnings; I make
such changes while I silence warnings in the same file. In
float_cst(), rename parameter `str` to `float_str`, so it doesn't
share a name with the global variable `str`.
Remove `const` from `newmodule(const char *)` in mach/proto/as to
silence a warning. I wrongly added the `const` in d347207.
For warnings about implicit declarations of functions, the fix is to
declare the function before calling it. For example, my OpenBSD
system needs <sys/wait.h> to declare wait().
In util/int, add "whatever.h" to declare more functions. Remove old
declarations from "mem.h", to prefer the newer declarations of the
same functions in "data.h" and "stack.h".
2019-10-23 20:06:36 +00:00
|
|
|
extern void initio(void);
|
|
|
|
extern void finishio(void);
|
|
|
|
extern void statistics(void);
|
|
|
|
|
|
|
|
/* strlookup.c */
|
|
|
|
extern int strlookup(char *str);
|