annotate mc-parse.h @ 346:969089695850

name reconfigure.... continue...
author kono
date Tue, 29 Jun 2004 23:11:47 +0900
parents 4c8f8ef8c0cf
children cef4d8eb9a26
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
1 /* for mc-parse.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
2
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
3 extern int sym,type,mode,stmode;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
4 extern int labelno,gpc,disp;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
5 extern int args,init_vars,heap[HEAPSIZE];
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
6 extern int cslabel,control;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
7 extern NMTBL *nptr,*gnptr;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
8 extern NMTBL *fnptr;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
9 extern int gtypedefed;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
10 extern int retlabel,retpending,retcont;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
11 extern int chk;
329
4c8f8ef8c0cf bit field continue...
kono
parents: 328
diff changeset
12 #if BIT_FIELD_CODE
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
13 extern int bit_field_disp;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
14 #endif
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
15 extern int fields;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
16 extern int struct_return;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
17 extern int lastexp;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
18 extern int debug;
328
7ecb023d29b8 macro/codegen reorganization done.
kono
parents: 327
diff changeset
19 extern int decl_str_init;
7ecb023d29b8 macro/codegen reorganization done.
kono
parents: 327
diff changeset
20
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
21 typedef struct hash
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
22 {
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
23 char *nm;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
24 int len;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
25 NMTBL *nptr;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
26 } HASH;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
27
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
28 /*
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
29 STRING nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
30 MACRO nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
31 FMACRO nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
32 RESERVE nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
33 TAG nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
34 FIELD nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
35 TYPE nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
36 */
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
37
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
38 typedef struct cheap
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
39 {
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
40 char *ptr;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
41 char *last;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
42 char *first;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
43 struct cheap *next;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
44 } CHEAP;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
45
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
46
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
47 /* used in mc-macro.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
48
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
49 extern int asmf;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
50 extern int ch;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
51 extern int chptrsave;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
52 extern int chsave;
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
53 extern char linebuf[LBUFSIZE],*chptr;
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
54 extern int glineno;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
55 extern int in_comment;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
56 extern int in_quote;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
57 extern int lfree;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
58 extern int lineno;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
59 extern int lsrc;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
60 extern char *include_path[MAX_INCLUDE_PATH_COUNT];
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
61
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
62 /* used in mc-code-* */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
63
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
64 extern NMTBL null_nptr;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
65 extern NMTBL ntable[GSYMS+LSYMS];
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
66
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
67 extern char * make_filename_with_extension(char *filename,char *ext);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
68
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
69 /* used in mc-switch */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
70
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
71 extern void free_glist3(int e1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
72 extern int csvalue1;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
73 extern int blabel,dlabel;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
74
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
75 /* used in mc-tree.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
76
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
77 extern int typedefed;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
78
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
79 /* global variable end */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
80
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
81 extern void free_glist2(int e1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
82
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
83 /* used in mc-codegen.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
84
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
85 extern NMTBL * anonymous_nptr();;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
86 extern int append4(int p,int a1,int a2,int a3);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
87 extern void display_ntable(NMTBL *n, char *s);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
88 #if FLOAT_CODE
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
89 extern int
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
90 dlist2(int e1, double d1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
91 #endif
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
92 extern void error(int n);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
93 extern int glist2(int e1,int e2);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
94 extern int glist3(int e1,int e2,int e3);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
95
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
96 extern int insert_ascend(int p,int e,int eq());
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
97 extern int length(int list);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
98 extern int list2(int e1, int e2);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
99 extern int list3(int e1, int e2, int e3);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
100 extern int list4(int e1, int e2, int e3, int e4);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
101 extern void extern_define(char *s,int d,int type,int use);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
102
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
103 #if LONGLONG_CODE
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
104 extern int llist2(int e1, long long d1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
105 #endif
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
106 extern int neqname(char *p,char *q);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
107 extern char *new_static_name(char *name,int delimit);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
108 extern int reverse0(int t1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
109 extern int size(int t);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
110 extern int typespec(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
111
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
112 /* used in mc-macro.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
113
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
114 extern struct cheap *cheap;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
115
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
116 extern int getsym(int sc);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
117 extern int getch(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
118 extern int skipspc(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
119 extern void copy_current_file_dir(char *name);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
120 extern int expr(int noconv);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
121
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
122 extern NMTBL *msearch0(char *name);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
123 extern int alpha(int c);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
124 extern int digit(int c);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
125
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
126 extern struct cheap * increment_cheap(struct cheap *cheap,char **save);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
127 extern void save_cheap(struct cheap *scheap,struct cheap *cheap);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
128 extern struct cheap * reset_cheap(struct cheap *scheap);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
129
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
130 /* end */