mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
fix some type parsing errors for structs and arrays
This commit is contained in:
parent
ee821705cc
commit
66ff0cfd4d
1 changed files with 3 additions and 0 deletions
|
@ -447,6 +447,7 @@ _parse_type (const char **str)
|
|||
case 's':
|
||||
return &type_short;
|
||||
case '{':
|
||||
new.type = ev_struct;
|
||||
name = dstring_newstr ();
|
||||
for (s = *str; *s && *s != '=' && *s !='}'; s++)
|
||||
;
|
||||
|
@ -479,8 +480,10 @@ _parse_type (const char **str)
|
|||
vis_public);
|
||||
if (**str != '}')
|
||||
return 0;
|
||||
(*str)++;
|
||||
return new.aux_type;
|
||||
case '[':
|
||||
new.type = ev_array;
|
||||
while (isdigit ((byte)**str)) {
|
||||
new.num_parms *= 10;
|
||||
new.num_parms += *(*str)++ - '0';
|
||||
|
|
Loading…
Reference in a new issue