Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.313
 
1.314
 
MAIN:ragge:20110504140653
 
pftn.c
_>198198                                     p->sname );
 199199                 case MOS:
 200200                 case MOU:
<> 201+                        cerror("field5");
201202                 case TYPEDEF:
 202203                 case PARAM:
 203204                         ;
     
 !
275276         }
 276277 
 277278         if (class & FIELD)
<>278 -                return;
  279+                cerror("field1");
279280         switch(class) {
 280281 
 281282         case EXTERN:
     
 !
322323 
 323324         case MOU:
 324325         case MOS:
<>325 -                goto done;
  326+                cerror("field6");
326327 
 327328         case EXTDEF:
 328329                 switch (scl) {
     
 !
395396 
 396397         /* allocate offsets */
 397398         if (class&FIELD) {
<>398 -                (void) falloc(p, class&FLDSIZ, NIL)/* new entry */
  399+                cerror("field2");  /* new entry */
399400         } else switch (class) {
 400401 
 401402         case REGISTER:
     
 !
424425                 break;
 425426 
 426427         case MOU:
<>427 -                rpole->rstr = 0;
 428 -                /* FALLTHROUGH */
429428         case MOS:
<>430 -                oalloc(p, &rpole->rstr);
 431 -                if (class == MOU)
 432 -                        rpole->rstr = 0;
 433 -                break;
  429+                cerror("field7");
434430         case SNULL:
 435431 #ifdef notdef
 436432                 if (fun_inline) {
     
 !
922918 soumemb(NODE *n, char *name, int class)
 923919 {
 924920         struct symtab *sp, *lsp;
<>925 -        int incomp;
  921+        int incomp, tsz, al;
926922         TWORD t;
 927923  
 928924         if (rpole == NULL)
     
 !
939935                 rpole->rb = sp;
 940936         else
 941937                 lsp->snext = sp;
<>942 -#ifdef GCC_COMPAT
 943 -        if (n->n_op == CM)
 944 -                cerror("soumemb CM");
 945 -#endif
  938+
946939         n->n_sp = sp;
<>947 -        if ((class & FIELD) == 0)
 948 -                class = rpole->rsou == STNAME ? MOS : MOU;
 949 -        defid(n, class);
  940+        sp->stype = n->n_type;
  941+        sp->squal = n->n_qual;
  942+        sp->slevel = blevel;
  943+        sp->sap = n->n_ap;
  944+        sp->sdf = n->n_df;
950945 
<> 946+        if (class & FIELD) {
  947+                sp->sclass = (char)class;
  948+                falloc(sp, class&FLDSIZ, NIL);
  949+        } else if (rpole->rsou == STNAME || rpole->rsou == UNAME) {
  950+                sp->sclass = rpole->rsou == STNAME ? MOS : MOU;
  951+                if (sp->sclass == MOU)
  952+                        rpole->rstr = 0;
  953+                al = talign(sp->stype, sp->sap);
  954+                tsz = (int)tsize(sp->stype, sp->sdf, sp->sap);
  955+                sp->soffset = upoff(tsz, al, &rpole->rstr);
  956+        }
  957+
951958         /*
 952959          * 6.7.2.1 clause 16:
 953960          * "...the last member of a structure with more than one
     
 !
25392546                 if (fun_inline && ISFTN(type))
 25402547                         return SNULL;
 25412548                 if (rpole)
<>2542 -                        class = rpole->rsou == STNAME ? MOS : MOU;
  2549+                        cerror("field8");
25432550                 else if (blevel == 0)
 25442551                         class = EXTDEF;
 25452552                 else
     
 !
25642571                 }
 25652572 
 25662573         if (class & FIELD) {
<>2567 -                if (rpole && rpole->rsou != STNAME && rpole->rsou != UNAME)
 2568 -                        uerror("illegal use of field");
 2569 -                return(class);
  2574+                cerror("field3");
25702575         }
 25712576 
 25722577         switch (class) {
 25732578 
 25742579         case MOS:
 25752580         case MOU:
<>2576 -                if (rpole == NULL)
 2577 -                        uerror("illegal member class");
 2578 -                return(class);
  2581+                cerror("field4");
<_25792582 
 25802583         case REGISTER:
 25812584                 if (blevel == 0)
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-21 08:19 +0200