annotate dmd/backend/Cstate.d @ 174:af724d3510d7

lot os toCBuffer methods implemented moved shared Type.* stuff into Global
author korDen
date Sun, 10 Oct 2010 03:47:23 +0400
parents e28b18c23469
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.backend.Cstate;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 25
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.backend.Symbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.backend.LIST;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.backend.symtab_t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 struct BLKLST;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 struct Cstate
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 BLKLST* CSfilblk; // current source file we are parsing
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 Symbol* CSlinkage; // table of forward referenced linkage pragmas
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 list_t CSlist_freelist; // free list for list package
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 symtab_t* CSpsymtab; // pointer to current Symbol table
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 version (MEMORYHX) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 void** CSphx; // pointer to HX data block
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 char* modname; // module unique identifier
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21
25
3f834bed4f13 FWindows linking issues fixed
korDen
parents: 16
diff changeset
22 version (Windows) {
174
af724d3510d7 lot os toCBuffer methods implemented
korDen
parents: 114
diff changeset
23 extern (C++) extern __gshared Cstate cstate; // compiler state
af724d3510d7 lot os toCBuffer methods implemented
korDen
parents: 114
diff changeset
24 extern (C++) extern __gshared symtab_t globsym; /* global symbol table */
af724d3510d7 lot os toCBuffer methods implemented
korDen
parents: 114
diff changeset
25 extern (C++) extern void symtab_free(Symbol** tab);
25
3f834bed4f13 FWindows linking issues fixed
korDen
parents: 16
diff changeset
26 } else {
3f834bed4f13 FWindows linking issues fixed
korDen
parents: 16
diff changeset
27 extern (C) extern __gshared Cstate cstate;
3f834bed4f13 FWindows linking issues fixed
korDen
parents: 16
diff changeset
28 }