Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.197
 
1.198
 
MAIN:gmcgarry:20080320011531
 
pftn.c
_>475475         tmpfree(); /* Release memory resources */
 476476 }
 477477 
<> 478+static struct symtab nulsym = {
  479+        { NULL, 0, 0, 0, 0 }, "null", "null", INT, 0, NULL, NULL
  480+};
  481+
478482 void
 479483 dclargs()
 480484 {
     
 !
484488         struct symtab *p, **parr = NULL; /* XXX gcc */
 485489         int i;
 486490 
<>487 -        if (lparam->sym == NULL) {
 488 -                uerror("parameter name omitted");
 489 -                return;
 490 -        }
 491 -
492491         /*
 493492          * Deal with fun(void) properly.
 494493          */
<>495 -        if (nparams == 1 && lparam->sym->stype == VOID)
  494+        if (nparams == 1 && lparam->sym && lparam->sym->stype == VOID)
496495                 goto done;
 497496 
 498497         /*
     
 !
507506                 p = a->sym;
 508507                 parr[i++] = p;
 509508                 if (p == NULL) {
<>510 -                        uerror("arg %d missing", i);
 511 -                        p = cftnsp; /* just some symtab */
  509+                        uerror("parameter %d name missing", i);
  510+                        p = &nulsym; /* empty symtab */
<_512511                 }
 513512                 if (p->stype == FARG) {
 514513                         p->stype = INT;
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-10-02 00:23 +0200