X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fprotoparse.h;h=a34d1a632912e534978acc600795fddf4b939a67;hb=5f70a34fac7e0f26d6154b3b4d7132ec813b41f4;hp=27752cf946643bf2fef15ccc22cfbdbf2c08e4d6;hpb=179b79a987ed0f464f47f724032aff6c90bc50c0;p=ia32rtools.git diff --git a/tools/protoparse.h b/tools/protoparse.h index 27752cf..a34d1a6 100644 --- a/tools/protoparse.h +++ b/tools/protoparse.h @@ -13,7 +13,8 @@ struct parsed_type { unsigned int is_array:1; unsigned int is_ptr:1; unsigned int is_struct:1; // split for args - unsigned int is_retreg:1; // register to return + unsigned int is_retreg:1; // register to return to caller + unsigned int is_va_list:1; }; struct parsed_proto_arg { @@ -292,6 +293,8 @@ static int check_type(const char *name, struct parsed_type *type) ret = n1 - name; type->name = strndup(name, ret); + if (IS(type->name, "__VALIST") || IS(type->name, "va_list")) + type->is_va_list = 1; if (IS(type->name, "VOID")) memcpy(type->name, "void", 4);