Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.3
 
1.4
 
MAIN:ragge:20020326192151
 
trees.c
_>307307                 case NAME:
 308308                         sp = &stab[idname];
 309309                         if( sp->stype == UNDEF ){
<>310 -#ifndef FLEXNAMES
 311 -                                uerror( "%.8s undefined", sp->sname );
 312 -#else
313310                                 uerror( "%s undefined", sp->sname );
<>314 -#endif
315311                                 /* make p look reasonable */
 316312                                 p->in.type = p->fn.csiz = INT;
 317313                                 p->fn.cdim = 0;
     
 !
388384                                         memnam = stab[i].sname;
 389385 # ifndef BUG1
 390386                                         if( ddebug>1 ){
<>391 -#ifndef FLEXNAMES
 392 -                                                printf("member %.8s==%.8s?\n",
 393 -#else
394387                                                 printf("member %s==%s?\n",
<>395 -#endif
396388                                                         memnam, tabnam);
 397389                                                 }
 398390 # endif
 399391                                         if( stab[memi].sflags & SNONUNIQ ){
<>400 -#ifndef FLEXNAMES
 401 -                                                register k;
 402 -                                                for( k=0; k<NCHNAM; ++k ){
 403 -                                                        if(*memnam++!=*tabnam)
 404 -                                                                goto next;
 405 -                                                        if(!*tabnam++) break;
 406 -                                                        }
 407 -#else
408392                                                 if (memnam != tabnam)
 409393                                                         goto next;
<>410 -#endif
411394                                                 r->tn.rval = i = memi;
 412395                                                 break;
 413396                                                 }
 414397                                         next: continue;
 415398                                         }
 416399                                 if( memi < 0 )
<>417 -#ifndef FLEXNAMES
 418 -                                        uerror("illegal member use: %.8s",
 419 -#else
420400                                         uerror("illegal member use: %s",
<>421 -#endif
422401                                                 stab[i].sname);
 423402                                 }
 424403                         else {
     
 !
431410                                         }
 432411                                 else if( (j=l->fn.csiz+1)<0 ) cerror( "undefined structure or union" );
 433412                                 else if( !chkstr( i, dimtab[j], DECREF(l->in.type) ) ){
<>434 -#ifndef FLEXNAMES
 435 -                                        werror( "illegal member use: %.8s", stab[i].sname );
 436 -#else
437413                                         werror( "illegal member use: %s", stab[i].sname );
<>438 -#endif
439414                                         }
 440415                                 }
 441416 
     
 !
644619         extern int ddebug;
 645620 
 646621 # ifndef BUG1
<>647 -#ifndef FLEXNAMES
 648 -        if( ddebug > 1 ) printf( "chkstr( %.8s(%d), %d )\n", stab[i].sname, i, j );
 649 -#else
650622         if( ddebug > 1 ) printf( "chkstr( %s(%d), %d )\n", stab[i].sname, i, j );
<>651 -#endif
652623 # endif
 653624         if( (k = j) < 0 ) uerror( "undefined structure or union" );
 654625         else {
     
 !
666637                                 if( hflag && chkstr( i, dimtab[stab[kk].sizoff+1], stab[kk].stype ) ){
 667638                                         if( stab[kk].sname[0] == '$' ) return(0);  /* $FAKE */
 668639                                         werror(
<>669 -#ifndef FLEXNAMES
 670 -                                        "illegal member use: perhaps %.8s.%.8s?",
 671 -#else
672640                                         "illegal member use: perhaps %s.%s?",
<>673 -#endif
674641                                         stab[kk].sname, stab[i].sname );
 675642                                         return(1);
 676643                                         }
     
 !
16621629 
 16631630         case NAME:
 16641631         case ICON:
<>1665 -#ifndef FLEXNAMES
 1666 -                if( p->tn.rval == NONAME ) p->in.name[0] = '\0';
 1667 -#else
16681632                 if( p->tn.rval == NONAME ) p->in.name = "";
<>1669 -#endif
16701633                 else if( p->tn.rval >= 0 ){ /* copy name from exname */
 16711634                         register char *cp;
 16721635                         cp = exname( stab[p->tn.rval].sname );
<>1673 -#ifndef FLEXNAMES
 1674 -                        {
 1675 -                                register i;
 1676 -                                for( i=0; i<NCHNAM; ++i )
 1677 -                                        p->in.name[i] = *cp++;
 1678 -                        }
 1679 -#else
16801636                         p->in.name = tstr(cp);
<>1681 -#endif
16821637                         }
<>1683 -#ifndef FLEXNAMES
 1684 -                else sprintf( p->in.name, LABFMT, -p->tn.rval );
 1685 -#else
16861638                 else {
 16871639                         char temp[32];
 16881640                         sprintf( temp, LABFMT, -p->tn.rval );
 16891641                         p->in.name = tstr(temp);
 16901642                 }
<>1691 -#endif
16921643                 break;
 16931644 
 16941645         case STARG:
     
 !
17031654         case REG:
 17041655                 rbusy( p->tn.rval, p->in.type );
 17051656         default:
<>1706 -#ifndef FLEXNAMES
 1707 -                p->in.name[0] = '\0';
 1708 -#else
17091657                 p->in.name = "";
<>1710 -#endif
<_17111658                 }
 17121659 
 17131660         p->in.rall = NOPREF;
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-28 23:55 +0100