pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.88 1999/09/18 09:21:21 hubbe Exp $"); + RCSID("$Id: las.c,v 1.89 1999/09/19 21:00:29 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:699:       i=ID_FROM_INT(p, numid);       /* Warning:    * This code doesn't produce function pointers for class constants,    * which can be harmful...    * /Hubbe    */    if(IDENTIFIER_IS_CONSTANT(i->identifier_flags))    { -  push_svalue(PROG_FROM_INT(p, numid)->constants + -  i->func.offset); +  push_svalue(&PROG_FROM_INT(p, numid)->constants[i->func.offset].sval);    }else{    my_yyerror("Identifier '%s' is not a constant", i->name->str);    push_int(0);    }    }   }      /* Leaves a function or object on the stack */   void resolv_class(node *n)   {
pike.git/src/las.c:2396:       while(new_program->num_strings > num_strings)    {    new_program->num_strings--;    free_string(new_program->strings[new_program->num_strings]);    }       while(new_program->num_constants > num_constants)    {    new_program->num_constants--; -  free_svalue(new_program->constants + new_program->num_constants); +  free_svalue(&new_program->constants[new_program->num_constants].sval);    }       new_program->num_program=jump;       return ret;   }      static node *eval(node *n)   {    int args;