pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.461 2003/08/18 15:11:37 mast Exp $ + || $Id: builtin_functions.c,v 1.462 2003/08/19 09:38:16 tomas Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.461 2003/08/18 15:11:37 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.462 2003/08/19 09:38:16 tomas Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:1930:    state->new_program->flags |= PROGRAM_USES_PARENT | PROGRAM_NEEDS_PARENT;    return NULL;    }    else {    int i;   #ifdef PIKE_DEBUG    if (CDR (n)->u.sval.type != T_INT || CDR (n)->u.sval.u.integer < 0)    Pike_fatal ("The type check for this_object() failed.\n");   #endif    level = CDR (n)->u.sval.u.integer; -  for (i = MIN (level, compilation_depth); i; i--, state = state->previous) -  state->new_program->flags |= PROGRAM_USES_PARENT | PROGRAM_NEEDS_PARENT; +  for (i = MINIMUM(level, compilation_depth); i; +  i--, state = state->previous) +  state->new_program->flags |= +  PROGRAM_USES_PARENT | PROGRAM_NEEDS_PARENT;    }    }       /* We can only improve the type when accessing the innermost object:    * Since this_object always follows the object pointers it might not    * access the lexically surrounding objects. Thus the    * PROGRAM_USES_PARENT stuff above is a bit of a long shot, but it's    * better than nothing. */    if (!level) {    free_type(n->type);