fixed the:
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 2 Oct 2001 12:34:02 +0000 (12:34 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 2 Oct 2001 12:34:02 +0000 (12:34 +0000)
void fun(int arg, void (*iterator)(int arg) reentrant) {
  (*iterator)(arg, arg);
}

case

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1344 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCast.c

index 25640f80b516a75ac0f34a730d41a3c8fbd5fdef..2e95ad9f275b7dbb961315004fa6287dde1b5fe4 100644 (file)
@@ -634,9 +634,9 @@ processParms (ast * func,
 
   /* if defined parameters ended but actual parameters */
   /* exist and this is not defined as a variable arg   */
-  /* also check if statckAuto option is specified      */
-  if ((!defParm) && actParm && (!func->hasVargs) &&
-      !options.stackAuto && !IS_RENT (fetype))
+  /* also check if statckAuto option is specified      */ // jwk: WHY?
+  if ((!defParm) && actParm && (!func->hasVargs) 
+      /* && !options.stackAuto && !IS_RENT (fetype) */)
     {
       werror (E_TOO_MANY_PARMS);
       return 1;