/ [mix] / trunk / mixasm.h
To checkout: svn checkout http://svn.gnu.org.ua/sources/mix/trunk/mixasm.h
Puszcza

Contents of /trunk/mixasm.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Wed Mar 30 16:43:11 2005 UTC (16 years, 10 months ago) by gray
File MIME type: text/plain
File size: 816 byte(s)
Initial revision

1 typedef struct list {
2 struct list *next;
3 } List;
4
5 typedef struct Symbol { /* symbol table entry */
6 struct Symbol *next; /* link to next */
7 char *name;
8 int value;
9 int line;
10 int type;
11 struct ref *reflist;
12 struct ref *xref;
13 } Symbol;
14
15 typedef struct ref { /* forward references */
16 struct ref *next;
17 int address;
18 int line;
19 } ref;
20
21 #define localref(s) (strlen((s)->name) == 2 &&\
22 (s)->name[0] >= '0' && (s)->name[0] <= '9' &&\
23 ((s)->name[1] == 'B' || (s)->name[1] == 'F'))
24
25 Symbol *install(char *s, int v, int l), *lookup(char *s);
26 ref *addref(ref *p, int loc, int line);
27 void sort_symbols(void);
28 void sort_refs(Symbol *s);
29
30 int yylex(void);
31 int yyerror(char *s);
32
33 void tlist(char *fmt, ...);

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20