|
1 | 1 | /* Copyright (c) 2019 ACK Project. |
2 | | - * See the copyright notice in the ACK home directory, |
| 2 | + * See the copyright notice in the ACK home directory, |
3 | 3 | * in the file "Copyright". |
4 | 4 | * |
5 | 5 | * Created on: 2019-05-02 |
6 | | - * |
| 6 | + * |
7 | 7 | */ |
8 | 8 | #ifndef SUBR_H_ |
9 | 9 | #define SUBR_H_ |
|
12 | 12 |
|
13 | 13 | struct varinfo; |
14 | 14 |
|
15 | | - |
16 | | -void n_proc(char *name); |
17 | | -struct varinfo * make_erase(char *name); |
18 | | -void n_instr(char *name, char *asname, operand *oplist, struct varinfo *eraselist, |
19 | | - struct varinfo *cost); |
20 | | -void n_set(char *name, int number); |
21 | | -void n_tok(char *name, struct varinfo *atts, int size, |
22 | | - struct varinfo *cost, struct varinfo *format); |
23 | | -void checkprintformat(int n); |
24 | | -void n_prop(char *name, int size); |
25 | | -void prophall(int n); |
26 | | -int n_reg(char *name, char *printstring, int nmemb, int member1, int member2); |
27 | | -void make_const(void); |
28 | | -int cmustbeset(char *ident); |
29 | | -void n_const(char *ident, int val); |
30 | | -void n_sconst(char *ident, char *val); |
31 | | -void regline(struct varinfo *rl, struct varinfo *pl, int rv); |
32 | | -void check_reglap(void); |
33 | | -void setallreg(struct varinfo *vi); |
34 | | -void freevi(struct varinfo *vip); |
35 | | -int myatoi(char *s); |
36 | | -char *mystrcpy(char *s); |
37 | | -char *myalloc(int n); |
38 | | -int chkincl(int value, int lwb, int upb); |
39 | | -int subset(short *sp1, short *sp2, int setsize); |
40 | | -int vilength(struct varinfo *vip); |
| 15 | +extern void n_proc(char* name); |
| 16 | +extern struct varinfo* make_erase(char* name); |
| 17 | +extern void |
| 18 | +n_instr(char* name, char* asname, operand* oplist, struct varinfo* eraselist, struct varinfo* cost); |
| 19 | +extern void n_set(char* name, int number); |
| 20 | +extern void |
| 21 | +n_tok(char* name, struct varinfo* atts, int size, struct varinfo* cost, struct varinfo* format); |
| 22 | +extern void checkprintformat(int n); |
| 23 | +extern void n_prop(char* name, int size); |
| 24 | +extern void prophall(int n); |
| 25 | +extern int n_reg(char* name, char* printstring, int nmemb, int member1, int member2); |
| 26 | +extern void make_const(void); |
| 27 | +extern int cmustbeset(char* ident); |
| 28 | +extern void n_const(char* ident, int val); |
| 29 | +extern void n_sconst(char* ident, char* val); |
| 30 | +extern void regline(struct varinfo* rl, struct varinfo* pl, int rv); |
| 31 | +extern void check_reglap(void); |
| 32 | +extern void setallreg(struct varinfo* vi); |
| 33 | +extern void freevi(struct varinfo* vip); |
| 34 | +extern int myatoi(char* s); |
| 35 | +extern char* mystrcpy(char* s); |
| 36 | +extern char* myalloc(int n); |
| 37 | +extern int chkincl(int value, int lwb, int upb); |
| 38 | +extern int subset(short* sp1, short* sp2, int setsize); |
| 39 | +extern int vilength(struct varinfo* vip); |
| 40 | +extern char* mygetcwd(void); |
41 | 41 |
|
42 | 42 | #endif /* SUBR_H_ */ |
0 commit comments