Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.79
 
1.80
 
MAIN:ragge:20030706135650
 
pftn.c
_>17681768 void
 17691769 nidcl(NODE *p, int class)
 17701770 {
<> 1771+        int commflag;
17711772 
 17721773         /* compute class */
 17731774         if (class == SNULL) {
     
 !
17761777                 else if (blevel != 0 || instruct)
 17771778                         cerror( "nidcl error" );
 17781779                 else /* blevel = 0 */
<>1779 -                        class = noinit();
  1780+                        commflag = (class = noinit()) == EXTERN;
17801781         }
 17811782 
 17821783         defid(p, class);
 17831784 
<>1784 -        /* if an array is not initialized, no empty dimension */
 1785 -        if (class != EXTERN && class != TYPEDEF &&      /* XXX 4.4 */
 1786 -            ISARY(p->n_type) && p->n_df->ddim == 0)
 1787 -                uerror("null storage definition");
 1788 -
17891785         switch (class) {
 17901786         case EXTDEF:
 17911787                 /* simulate initialization by 0 */
 17921788                 beginit(p->n_sp, class);
 17931789                 endinit();
 17941790                 break;
 17951791         case EXTERN:
<>1796 -                commdec(p->n_sp);
  1792+                if (commflag)
  1793+                        commdec(p->n_sp);
<_17971794                 break;
 17981795         case STATIC:
 17991796                 lcommdec(p->n_sp);
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-30 21:54 +0200