annotate mc-parse.h @ 348:e77b3a7002ad

name table reconfigure compiled. debug start.
author kono
date Fri, 02 Jul 2004 07:19:15 +0900
parents cef4d8eb9a26
children b74b580c10f6
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 /*
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
22 STRING nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
23 MACRO nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
24 FMACRO nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
25 RESERVE nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
26 TAG nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
27 FIELD nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
28 TYPE nptr
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
29 */
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
30
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
31 typedef struct cheap
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
32 {
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
33 char *ptr;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
34 char *last;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
35 char *first;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
36 struct cheap *next;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
37 } CHEAP;
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
38
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
39
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
40 /* used in mc-macro.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
41
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
42 extern int asmf;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
43 extern int ch;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
44 extern int chptrsave;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
45 extern int chsave;
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
46 extern char linebuf[LBUFSIZE],*chptr;
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
47 extern int glineno;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
48 extern int in_comment;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
49 extern int in_quote;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
50 extern int lfree;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
51 extern int lineno;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
52 extern int lsrc;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
53 extern char *include_path[MAX_INCLUDE_PATH_COUNT];
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
54
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
55 /* used in mc-code-* */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
56
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
57 extern NMTBL null_nptr;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
58
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
59 extern char * make_filename_with_extension(char *filename,char *ext);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
60
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
61 /* used in mc-switch */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
62
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
63 extern void free_glist3(int e1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
64 extern int csvalue1;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
65 extern int blabel,dlabel;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
66
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
67 /* used in mc-tree.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
68
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
69 extern int typedefed;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
70
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
71 /* global variable end */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
72
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
73 extern void free_glist2(int e1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
74
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
75 /* used in mc-codegen.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
76
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
77 extern NMTBL * anonymous_nptr();;
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
78 extern int append4(int p,int a1,int a2,int a3);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
79 extern void display_ntable(NMTBL *n, char *s);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
80 #if FLOAT_CODE
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
81 extern int
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
82 dlist2(int e1, double d1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
83 #endif
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
84 extern void error(int n);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
85 extern int glist2(int e1,int e2);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
86 extern int glist3(int e1,int e2,int e3);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
87
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
88 extern int insert_ascend(int p,int e,int eq());
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
89 extern int length(int list);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
90 extern int list2(int e1, int e2);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
91 extern int list3(int e1, int e2, int e3);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
92 extern int list4(int e1, int e2, int e3, int e4);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
93 extern void extern_define(char *s,int d,int type,int use);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
94
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
95 #if LONGLONG_CODE
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
96 extern int llist2(int e1, long long d1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
97 #endif
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
98 extern int neqname(char *p,char *q);
347
cef4d8eb9a26 name table reconfigure continue...
kono
parents: 346
diff changeset
99 extern NMTBL *new_static_name(char *name,int delimit);
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
100 extern int reverse0(int t1);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
101 extern int size(int t);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
102 extern int typespec(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
103
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
104 /* used in mc-macro.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
105
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
106 extern struct cheap *cheap;
347
cef4d8eb9a26 name table reconfigure continue...
kono
parents: 346
diff changeset
107 extern NMTBL *get_name(char *name,int *i);
cef4d8eb9a26 name table reconfigure continue...
kono
parents: 346
diff changeset
108 extern NMTBL *name_space_search(NMTBL *ns,int sc);
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
109
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
110 extern int getsym(int sc);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
111 extern int getch(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
112 extern int skipspc(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
113 extern void copy_current_file_dir(char *name);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
114 extern int expr(int noconv);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
115
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
116 extern NMTBL *msearch0(char *name);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
117 extern int alpha(int c);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
118 extern int digit(int c);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
119
346
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
120 extern struct cheap * increment_cheap(struct cheap *cheap,char **save);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
121 extern void save_cheap(struct cheap *scheap,struct cheap *cheap);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
122 extern struct cheap * reset_cheap(struct cheap *scheap);
969089695850 name reconfigure.... continue...
kono
parents: 329
diff changeset
123
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
124 /* end */