From: kmh Date: Mon, 27 Mar 2000 20:03:49 +0000 (+0000) Subject: parameter processing fixed X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9271bf22f591ee9b07d810cea38e0bc5f54ca036;p=fw%2Fsdcc parameter processing fixed git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@212 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCast.c b/src/SDCCast.c index a67b3ba1..0519df69 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -414,6 +414,9 @@ int setAstLineno ( ast *tree, int lineno) return 0; } +#if 0 +/* this functions seems to be superfluous?! kmh */ + /*-----------------------------------------------------------------*/ /* resolveFromTable - will return the symbal table value */ /*-----------------------------------------------------------------*/ @@ -439,6 +442,7 @@ value *resolveFromTable (value *val) return val; } +#endif /*-----------------------------------------------------------------*/ /* funcOfType :- function of type with name */ @@ -577,10 +581,12 @@ int processParms (ast *func, value *defParm, actParm->ftype= defParm->type; } - actParm->argSym = resolveFromTable(defParm)->sym ; +/* actParm->argSym = resolveFromTable(defParm)->sym ; */ + actParm->argSym = defParm->sym; /* make a copy and change the regparm type to the defined parm */ actParm->etype = getSpec(actParm->ftype = copyLinkChain(actParm->ftype)); SPEC_REGPARM(actParm->etype) = SPEC_REGPARM(defParm->etype); + (*parmNumber)++; return 0; } /*-----------------------------------------------------------------*/