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.89 1999/09/19 21:00:29 grubba Exp $"); + RCSID("$Id: las.c,v 1.90 1999/09/19 21:11:47 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:2394:    }       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)    { +  struct program_constant *p_const; +     new_program->num_constants--; -  free_svalue(&new_program->constants[new_program->num_constants].sval); +  +  p_const = new_program->constants + new_program->num_constants; +  +  free_svalue(&p_const->sval); +  if (p_const->name) { +  free_string(p_const->name); +  p_const->name = NULL;    } -  +  }       new_program->num_program=jump;       return ret;   }      static node *eval(node *n)   {    int args;    extern struct svalue *sp;