diff options
Diffstat (limited to 'include/parse.h')
-rw-r--r-- | include/parse.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/parse.h b/include/parse.h index de30f39..981d8c6 100644 --- a/include/parse.h +++ b/include/parse.h @@ -9,7 +9,8 @@ struct ast_expr { struct ast_externfunc { const char *name; struct type ret; - struct type params[]; + struct type *params; + int paramsz, paramlen; }; struct ast_param { @@ -24,11 +25,12 @@ struct ast_block { }; struct ast_func { - bool pub, exported; + bool exported; const char *name; - struct ast_block block; struct type ret; - struct ast_param params[]; + struct ast_param *params; + int paramsz, paramlen; + struct ast_block block; }; enum const_global { @@ -39,14 +41,13 @@ enum const_global { }; struct ast_const_global { - bool pub; const char *name; enum const_global kind; union { - struct type *type; + struct type type; bool b; struct number num; - const char *str; + char *str; } value; }; |