parameter processing fixed
authorkmh <kmh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 27 Mar 2000 20:03:49 +0000 (20:03 +0000)
committerkmh <kmh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 27 Mar 2000 20:03:49 +0000 (20:03 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@212 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCast.c

index a67b3ba104fedf84584348735d15ee4e327048a3..0519df698c11019670dec4aa08488e7885a877c2 100644 (file)
@@ -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;
 }
 /*-----------------------------------------------------------------*/