X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser.h;h=7faa43b712f74a54b20cad9b657f89ac55ecf0ef;hp=55f4f9d75f6d57067adacc2e8a43950530cc2dcd;hb=43f9e142088705cc003bb021a32ecd4d4d3b3d2b;hpb=e16c15d5936c3b57b05e49570fb9526920de8188;ds=inline diff --git a/src/parser.h b/src/parser.h index 55f4f9d..7faa43b 100644 --- a/src/parser.h +++ b/src/parser.h @@ -262,16 +262,20 @@ static inline void free_decl_abi(decl_abi *abi) { free(abi); } +typedef struct decl_callinfo { + void *sym; + void *info; + size_t argc; + void **args; + void *rval; +} decl_callinfo; + typedef struct decl { decl_abi *abi; decl_arg *func; decl_args *args; struct impl *impl; - struct { - void *sym; - void *info; - void **args; - } call; + decl_callinfo call; } decl; static inline decl* init_decl(decl_abi *abi, decl_arg *func, decl_args *args) {