pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.318 2002/12/20 15:13:20 grubba Exp $ + || $Id: las.c,v 1.319 2002/12/20 15:25:20 grubba Exp $   */      #include "global.h" - RCSID("$Id: las.c,v 1.318 2002/12/20 15:13:20 grubba Exp $"); + RCSID("$Id: las.c,v 1.319 2002/12/20 15:25:20 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:2944: Inside #if defined(PIKE_DEBUG)
   if (l_flag > 2) {    fprintf(stderr, "kept\n");    }   #endif /* PIKE_DEBUG */    }    }    break;       case F_ARROW:    case F_INDEX: -  p->ext_flags |= VAR_USED; +  p->ext_flags = VAR_USED;    if(car_is_node(n)) find_used_variables(CAR(n),p,noblock,0);    if(cdr_is_node(n)) find_used_variables(CDR(n),p,noblock,0);    break;       case F_ASSIGN:    find_used_variables(CAR(n),p,noblock,0);    find_used_variables(CDR(n),p,noblock,1);    break;       case '?':
pike.git/src/las.c:3168:    SET_ONERROR(free_bb, free_vars, &bb);       /* A depends on B if A uses stuff that is written to by B. */       find_used_variables(a, &aa, 0, 0);    find_written_vars(b, &bb, 0);       UNSET_ONERROR(free_bb);    UNSET_ONERROR(free_aa);    -  if(aa.err || bb.err) { +  /* If there was an error or +  * If A has external dependencies due to indexing, we won't +  * investigate further. +  */ +  if(aa.err || bb.err || aa.ext_flags == VAR_USED) {    free_vars(&aa);    free_vars(&bb);    return 1;    }    -  /* If A has external dependencies due to indexing, we won't -  * investigate further. -  */ -  if (aa.ext_flags == VAR_USED) return 1; -  +     /* Check for overlap in locals. */    {    struct scope_info *aaa = aa.locals;    struct scope_info *bbb = bb.locals;       while (aaa) {    while (bbb && (bbb->scope_id < aaa->scope_id)) {    bbb = bbb->next;    }    if (!bbb) break;