Mercurial > projects > ddmd
view 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 |
line wrap: on
line source
module dmd.backend.Cstate; import dmd.common; import dmd.backend.Symbol; import dmd.backend.LIST; import dmd.backend.symtab_t; struct BLKLST; struct Cstate { BLKLST* CSfilblk; // current source file we are parsing Symbol* CSlinkage; // table of forward referenced linkage pragmas list_t CSlist_freelist; // free list for list package symtab_t* CSpsymtab; // pointer to current Symbol table version (MEMORYHX) { void** CSphx; // pointer to HX data block } char* modname; // module unique identifier } version (Windows) { extern (C++) extern __gshared Cstate cstate; // compiler state extern (C++) extern __gshared symtab_t globsym; /* global symbol table */ extern (C++) extern void symtab_free(Symbol** tab); } else { extern (C) extern __gshared Cstate cstate; }