mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 19:01:06 +00:00
[vkgen] Clean up an unnecessary function redirect
I think it was mostly a holdover from early development, but it certainly makes sense to tuck the functionality away in Struct.
This commit is contained in:
parent
c402275112
commit
a522464fc1
3 changed files with 5 additions and 10 deletions
|
@ -97,12 +97,6 @@ void print_type (qfot_type_t *type)
|
|||
}
|
||||
}
|
||||
|
||||
void struct_func (qfot_var_t *var)
|
||||
{
|
||||
Type *type = [Type findType:var.type];
|
||||
[type addToQueue];
|
||||
}
|
||||
|
||||
void
|
||||
scan_types (void)
|
||||
{
|
||||
|
@ -208,7 +202,7 @@ main(int argc, string *argv)
|
|||
if ([[parse getObjectForKey:[obj name]] string] == "skip") {
|
||||
continue;
|
||||
}
|
||||
[obj forEachFieldCall:struct_func];
|
||||
[obj queueFieldTypes];
|
||||
}
|
||||
[output_types addObject:obj];
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{
|
||||
string outname;
|
||||
}
|
||||
-(void) forEachFieldCall: (varfunc) func;
|
||||
-(void) queueFieldTypes;
|
||||
-(qfot_var_t *)findField:(string) fieldName;
|
||||
-(void) writeTable;
|
||||
-(void) writeSymtabInit;
|
||||
|
|
|
@ -27,12 +27,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
-(void) forEachFieldCall: (varfunc) func
|
||||
-(void) queueFieldTypes
|
||||
{
|
||||
qfot_struct_t *strct =&type.strct;
|
||||
|
||||
for (int i = 0; i < strct.num_fields; i++) {
|
||||
func (&strct.fields[i]);
|
||||
Type *type = [Type findType:var.type];
|
||||
[type addToQueue];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue