mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 06:40:49 +00:00
for arrays, ast_value will contain several ir_values, ir_v will point to the [0] element
This commit is contained in:
parent
00a28e48ee
commit
62d062f860
2 changed files with 5 additions and 1 deletions
4
ast.c
4
ast.c
|
@ -312,7 +312,9 @@ ast_value* ast_value_new(lex_ctx ctx, const char *name, int t)
|
|||
self->uses = 0;
|
||||
memset(&self->constval, 0, sizeof(self->constval));
|
||||
|
||||
self->ir_v = NULL;
|
||||
self->ir_v = NULL;
|
||||
self->ir_values = NULL;
|
||||
self->ir_value_count = 0;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
2
ast.h
2
ast.h
|
@ -162,6 +162,8 @@ struct ast_value_s
|
|||
size_t uses;
|
||||
|
||||
ir_value *ir_v;
|
||||
ir_value **ir_values;
|
||||
size_t ir_value_count;
|
||||
};
|
||||
|
||||
ast_value* ast_value_new(lex_ctx ctx, const char *name, int qctype);
|
||||
|
|
Loading…
Reference in a new issue