Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.83
 
1.84
 
MAIN:ragge:20030707135304
 
pftn.c
_>558558         /*
 559559          * Deal with fun(void) properly.
 560560          */
<>561 -        if (nparams == 1 && lparam->sym->stype == UNDEF)
  561+        if (nparams == 1 && lparam->sym->stype == VOID)
562562                 goto done;
 563563 
 564564         /*
     
 !
22162216                 werror("no prototype for function");
 22172217                 goto build;
 22182218         }
<>2219 -        if (al->type == UNDEF) {
  2219+        if (al->type == VOID) {
22202220                 if (a != NULL)
 22212221                         uerror("function takes no arguments");
 22222222                 goto build; /* void function */
     
 !
22872287                         } else
 22882288                                 goto out;
 22892289                 }
<>2290 -                if (BTYPE(arrt) == UNDEF && type > BTMASK)
  2290+                if (BTYPE(arrt) == VOID && type > BTMASK)
22912291                         goto skip; /* void *f = some pointer */
<>2292 -                if (arrt > BTMASK && BTYPE(type) == UNDEF)
  2292+                if (arrt > BTMASK && BTYPE(type) == VOID)
22932293                         goto skip; /* some *f = void pointer */
 22942294                 if (apole->node->n_op == ICON && apole->node->n_lval == 0)
 22952295                         goto skip; /* Anything assigned a zero */
     
 !
23462346 
 23472347         if (usym == NULL)
 23482348                 return 0;
<>2349 -        if (cftnsp != NULL && udef == NULL && usym->type == UNDEF)
  2349+        if (cftnsp != NULL && udef == NULL && usym->type == VOID)
<_23502350                 return 0; /* foo() { function with foo(void); prototype */
 23512351         if (udef == NULL && usym->type != TNULL)
 23522352                 return 1;
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-09-16 06:55 +0200