struct/union definitions
This commit is contained in:
parent
387d650cab
commit
d036dcc5ac
6 changed files with 217 additions and 35 deletions
13
05/main.b
13
05/main.b
|
@ -30,12 +30,10 @@ global types_bytes_used
|
|||
global typedefs
|
||||
; ident list of enum values
|
||||
global enumerators
|
||||
; struct/union names
|
||||
; an ident list of pointers to struct data (see structures below)
|
||||
global struct_names
|
||||
; structs and unions
|
||||
; each struct/union is an ident list of 64-bit values, (type << 32) | offset
|
||||
; for unions, offset will always be 0.
|
||||
; struct/unions
|
||||
; an ident list of pointers to struct data
|
||||
; each struct data is an ident list of 64-bit values, (type << 32) | offset
|
||||
; for unions, offset will always be 0.
|
||||
global structures
|
||||
global structures_bytes_used
|
||||
|
||||
|
@ -155,7 +153,7 @@ function main
|
|||
|
||||
typedefs = ident_list_create(100000)
|
||||
enumerators = ident_list_create(4000000)
|
||||
struct_names = ident_list_create(4000000)
|
||||
structures = ident_list_create(4000000)
|
||||
|
||||
dat_banned_objmacros = 255
|
||||
dat_banned_fmacros = 255
|
||||
|
@ -164,7 +162,6 @@ function main
|
|||
*1file_list = 255
|
||||
object_macros = malloc(4000000)
|
||||
function_macros = malloc(4000000)
|
||||
structures = malloc(40000000)
|
||||
|
||||
types = malloc(16000000)
|
||||
types_init(types, &types_bytes_used)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue