Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.77
 
1.78
 
MAIN:ragge:20030706130634
 
pftn.c
_>283283                 }
 284284                 break;
 285285 
<>286 -        case MOE:       /* XXX 4.4 */
  286+        case MOE:
287287                 break;
 288288 
 289289         case EXTDEF:
     
 !
495495         int i;
 496496 
 497497         argoff = ARGINIT;
<>498 -#ifdef PCC_DEBUG
 499 -        if (ddebug > 2)
 500 -                printf("dclargs()\n");
 501 -#endif
502498 
 503499         /*
 504500          * Deal with fun(void) properly.
     
 !
526522                         p->stype += (PTR-ARY);
 527523                         p->sdf++;
 528524                 }
<>529 -#ifdef PCC_DEBUG
 530 -                if (ddebug > 2) {       /* XXX 4.4 */
 531 -                        printf("\t%s (%p) ", p->sname, p);
 532 -                        tprint(p->stype);
 533 -                        printf("\n");
 534 -                }
 535 -#endif
536525                 /* always set aside space, even for register arguments */
 537526                 oalloc(p, &argoff);
 538527         }
     
 !
10391028 
 10401029 int ibseen = 0/* the number of } constructions which have been filled */
 10411030 
<>1042 -int ifull = 0; /* 1 if all initializers have been seen */ /* XXX 4.4 */
 1043 -
10441031 int iclass/* storage class of thing being initialized */
 10451032 
 10461033 int ilocctr = 0/* location counter for current initialization */
     
 !
10771064 
 10781065         inoff = 0;
 10791066         ibseen = 0;
<>1080 -        ifull = 0;
10811067 
 10821068         pstk = 0;
 10831069 
     
 !
11351121                         ++d;
 11361122                         continue;
 11371123                 } else if (t == STRTY || t == UNIONTY) {
<>1138 -                        if (pstk->in_sue == 0) { /* XXX lite 4.4 */
  1124+                        if (pstk->in_sue == 0) {
11391125                                 uerror("can't initialize undefined %s",
 11401126                                     t == STRTY ? "structure" : "union");
 11411127                                 iclass = -1;
     
 !
13401326 }
 13411327 
 13421328 /*
<>1343 - * called from the grammar if we must punt during initialization
 1344 - * stolen from endinit()
 1345 - */
 1346 -void
 1347 -fixinit(void)   /* XXX 4.4 hela fixinit */
 1348 -{
 1349 -        while (pstk->in_prev)
 1350 -                pstk = pstk->in_prev;
 1351 -        lparam = NULL;
 1352 -        vfdalign( AL_INIT );
 1353 -        inoff = 0;
 1354 -        iclass = SNULL;
 1355 -}
 1356 -
 1357 -/*
13581329  * take care of generating a value for the initializer p
 13591330  * inoff has the current offset (last bit written)
 13601331  * in the current word being generated
     
 !
13911362 
 13921363         if( p == NIL ) return/* for throwing away strings that have been turned into lists */
 13931364 
<>1394 -        if( ifull ){    /* XXX 4.4 */
 1395 -                uerror( "too many initializers" );
 1396 -                iclass = -1;
 1397 -                return;
 1398 -                }
13991365         if( ibseen ){
 14001366                 uerror( "} expected");
 14011367                 return;
     
 !
14321398         p->n_op = INIT;
 14331399 
 14341400         if( sz < SZINT ){ /* special case: bit fields, etc. */
<>1435 -                if (o != ICON || p->n_left->n_sp != NULL) /* XXX 4.4 */
  1401+                if (o != ICON)
14361402                         uerror( "illegal initialization" );
 14371403                 else {
 14381404                         incode( p->n_left, sz );
     
 !
14451411                 fincode( p->n_left->n_dcon, sz );
 14461412                 nfree(p);
 14471413         } else {
<>1448 -                p = optim(p);
 1449 -                if( p->n_left->n_op != ICON )   /* XXX 4.4 */
 1450 -                        uerror( "illegal initialization" );
 1451 -                else
 1452 -                        cinit( p, sz );
  1414+                cinit( optim(p), sz );
14531415         }
 14541416 
 14551417         gotscal();
     
 !
14941456                         cerror("gotscal");
 14951457 
 14961458         }
<>1497 -        ifull = 1;      /* XXX 4.4 */
14981459 }
 14991460 
 15001461 /*
     
 !
15581519         }
 15591520 
 15601521         /* these right braces match ignored left braces: throw out */
<>1561 -        ifull = 1;      /* XXX 4.4 */
<_15621522 }
 15631523 
 15641524 /*
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-08-29 01:17 +0200