projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
prepare varargs calls
[m6w6/ext-psi]
/
src
/
parser.h
diff --git
a/src/parser.h
b/src/parser.h
index 55f4f9d75f6d57067adacc2e8a43950530cc2dcd..7faa43b712f74a54b20cad9b657f89ac55ecf0ef 100644
(file)
--- a/
src/parser.h
+++ b/
src/parser.h
@@
-262,16
+262,20
@@
static inline void free_decl_abi(decl_abi *abi) {
free(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;
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) {
} decl;
static inline decl* init_decl(decl_abi *abi, decl_arg *func, decl_args *args) {