Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.96
 
1.97
 
MAIN:ragge:20030814075434
 
pftn.c
_>578578                 if (ISARY(p->stype)) {
 579579                         p->stype += (PTR-ARY);
 580580                         p->sdf++;
<> 581+                } else if (ISFTN(p->stype)) {
  582+                        werror("function declared as argument");
  583+                        p->stype = INCREF(p->stype);
581584                 }
 582585                 /* always set aside space, even for register arguments */
 583586                 oalloc(p, &argoff);
     
 !
21212124                         ap[j]->n_type += (PTR-ARY);
 21222125                         ap[j]->n_df++;
 21232126                 }
<> 2127+                /* Convert (silently) functions to pointers */
  2128+                if (ISFTN(ap[j]->n_type))
  2129+                        ap[j]->n_type = INCREF(ap[j]->n_type);
21242130                 ty = ap[j]->n_type;
 21252131                 al[k++].type = ty;
 21262132                 if (BTYPE(ty) == STRTY || BTYPE(ty) == UNIONTY ||
     
 !
24352441                 }
 24362442 
 24372443         /* detect function arguments, watching out for structure declarations */
<>2438 -
<_24392444         if (instruct && ISFTN(type)) {
 24402445                 uerror("function illegal in structure or union");
 24412446                 type = INCREF(type);
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-28 17:10 +0200