Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.38
 
1.39
 
MAIN:ragge:20030607175235
 
pftn.c
_>21042104 }
 21052105 
 21062106 /*
<>2107 - * look up name: must agree with s w.r.t. STAG, SMOS and SHIDDEN
  2107+ * look up name: must agree with s w.r.t. STAG and SHIDDEN
21082108  */
 21092109 struct symtab *
 21102110 lookup(char *name, int s)
     
 !
21362136                         if (s & SNOCREAT)
 21372137                                 return NULL;
 21382138 //printf("creating %s (%d)\n", name, sp - stab);
<>2139 -                        sp->sflags = s/* set STAG, SMOS if needed, turn off all others */
  2139+                        sp->sflags = s/* set STAG if needed, turn off all others */
21402140                         sp->sname = name;
 21412141                         sp->stype = UNDEF;
 21422142                         sp->sclass = SNULL;
 21432143                         sp->s_argn = 0;
 21442144                         return sp;
 21452145                 }
<>2146 -                if ((sp->sflags & (STAG|SMOS|SHIDDEN)) != (s & ~SNOCREAT))
  2146+                if ((sp->sflags & (STAG|SHIDDEN)) != (s & ~SNOCREAT))
21472147                         goto next;
 21482148                 p = sp->sname;
 21492149                 q = name;
     
 !
21722172         for (i=0, p=stab; i<SYMTSZ; ++i, ++p) {
 21732173                 if (p->stype == TNULL)
 21742174                         continue;
<>2175 -                j = lookup(p->sname, p->sflags&(SMOS|STAG));
  2175+                j = lookup(p->sname, p->sflags&STAG);
21762176                 if (j != i) {
 21772177                         q = &stab[j];
 21782178                         if (q->stype == UNDEF || q->slevel <= p->slevel)
     
 !
21922192 {
 21932193         struct symtab *q;
 21942194 
<>2195 -        q = lookup(p->sname, p->sflags&(STAG|SMOS|SHIDDEN));
  2195+        q = lookup(p->sname, p->sflags&(STAG|SHIDDEN));
21962196         /* make relook always point to either p or an empty cell */
 21972197         if (q->stype == UNDEF) {
 21982198                 q->stype = TNULL;
     
 !
23032303         }
 23042304         *q = *p;
 23052305         p->sflags |= SHIDDEN;
<>2306 -        q->sflags = (p->sflags&(SMOS|STAG)) | SHIDES;
  2306+        q->sflags = (p->sflags&STAG) | SHIDES;
23072307 #if 0
 23082308         if (p->slevel > 0)
 23092309                 werror("%s redefinition hides earlier one", p->sname);
     
 !
23212321         struct symtab *q;
 23222322         int s;
 23232323 
<>2324 -        s = p->sflags & (SMOS|STAG);
  2324+        s = p->sflags & STAG;
23252325         q = p;
 23262326 
 23272327         for(;;){
     
 !
23312331 
 23322332                 if( q == p ) break;
 23332333 
<>2334 -                if( (q->sflags&(SMOS|STAG)) == s ){
  2334+                if( (q->sflags&STAG) == s ){
<_23352335                         if (p->sname == q->sname) {
 23362336                                 q->sflags &= ~SHIDDEN;
 23372337 # ifndef BUG1
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-20 21:09 +0100