aboutsummaryrefslogtreecommitdiff
path: root/c67-gen.c
diff options
context:
space:
mode:
authorgrischka <grischka>2017-07-09 12:34:11 +0200
committergrischka <grischka>2017-07-09 12:34:11 +0200
commit9ba76ac834608f76b734674048a7cc4334051e32 (patch)
tree8d71dd52664d0399fb010fd502283993b0d67285 /c67-gen.c
parent9f79b62ec4d84d07cf4a2fba969cb67c8f6ed8e5 (diff)
downloadtinycc-9ba76ac834608f76b734674048a7cc4334051e32.tar.gz
tinycc-9ba76ac834608f76b734674048a7cc4334051e32.tar.bz2
refactor sym & attributes
tcc.h: * cleanup struct 'Sym' * include some 'Attributes' into 'Sym' * in turn get rid of VT_IM/EXPORT, VT_WEAK * re-number VT_XXX flags * replace some 'long' function args by 'int' tccgen.c: * refactor parse_btype()
Diffstat (limited to 'c67-gen.c')
-rw-r--r--c67-gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c67-gen.c b/c67-gen.c
index a480976..bcb4b0e 100644
--- a/c67-gen.c
+++ b/c67-gen.c
@@ -1951,12 +1951,12 @@ void gfunc_prolog(CType * func_type)
CType *type;
sym = func_type->ref;
- func_call = sym->r;
+ func_call = sym->f.func_call;
addr = 8;
/* if the function returns a structure, then add an
implicit pointer parameter */
func_vt = sym->type;
- func_var = (sym->c == FUNC_ELLIPSIS);
+ func_var = (sym->f.func_type == FUNC_ELLIPSIS);
if ((func_vt.t & VT_BTYPE) == VT_STRUCT) {
func_vc = addr;
addr += 4;