X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fprotoparse.h;h=9a126ccf1a52570ffc16372a03c6e3d180801030;hb=efea2951f8ca2f939ea9297ea4a035e7e99ef714;hp=0900243a508a8f77c90b703f95b04ef7eaf585d5;hpb=ef6b315df434af2d9f1336be3247a08b816306a4;p=ia32rtools.git diff --git a/tools/protoparse.h b/tools/protoparse.h index 0900243..9a126cc 100644 --- a/tools/protoparse.h +++ b/tools/protoparse.h @@ -28,10 +28,11 @@ struct parsed_proto { unsigned int is_func:1; unsigned int is_stdcall:1; unsigned int is_fastcall:1; - unsigned int is_vararg:1; + unsigned int is_vararg:1; // vararg func unsigned int is_fptr:1; unsigned int is_noreturn:1; unsigned int is_unresolved:1; + unsigned int is_arg:1; // decl in func arg unsigned int has_structarg:1; }; @@ -512,6 +513,10 @@ static int parse_protostr(char *protostr, struct parsed_proto *pp) hdrfn, hdrfline, p1 - protostr); return -1; } + arg->fptr->is_arg = 1; + // we don't use actual names right now.. + snprintf(arg->fptr->name, + sizeof(arg->fptr->name), "a%d", xarg); // we'll treat it as void * for non-calls arg->type.name = strdup("void *"); arg->type.is_ptr = 1;