Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.44
 
1.45
 
MAIN:ragge:20030707104548
 
trees.c
_>66 # include <string.h>
 77 
 88 int adebug = 0/* XXX 4.4 */
<>9 -extern int ddebug;      /* XXX 4.4 */
109 
 1110 void chkpun(NODE *p);
 1211 int opact(NODE *p);
 1312 int moditype(TWORD);
<> 13+static NODE *strargs(NODE *);
1414 
 1515 /* corrections when in violation of lint */
 1616 
     
 !
451451                         break;
 452452 
 453453                 case CALL:
<>454 -                        p->n_right = r = fixargs(p->n_right);
  454+                        p->n_right = r = strargs(p->n_right);
455455                 case UNARY CALL:
 456456                         if (!ISPTR(l->n_type))
 457457                                 uerror("illegal function");
     
 !
504504 
 505505         }
 506506 
<>507 -/*      * XXX 4.4 comments *
 508 - * Rewrite arguments in a function call.
 509 - * Structure arguments are massaged, single
 510 - * precision floating point constants are
 511 - * cast to double (to eliminate convert code).
 512 - */
513507 NODE *
<>514 -fixargs( p ) register NODE *p;  {
 515 -        int o = p->n_op;
  508+strargs( p ) register NODE *p;  { /* rewrite structure flavored arguments */
516509 
<>517 -        if( o == CM ){
 518 -                p->n_left = fixargs( p->n_left );
 519 -                p->n_right = fixargs( p->n_right );
  510+        if( p->n_op == CM ){
  511+                p->n_left = strargs( p->n_left );
  512+                p->n_right = strargs( p->n_right );
520513                 return( p );
 521514                 }
 522515 
     
 !
525518                 p->n_left = buildtree( UNARY AND, p->n_left, NIL );
 526519                 p = clocal(p);
 527520                 }
<>528 -        else if( o == FCON )    /* XXX 4.4 */
 529 -                p = makety(p, DOUBLE, 0, 0);
<_530521         return( p );
 531522 }
 532523 
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 18:56 +0100