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.257 2001/07/16 19:48:58 hubbe Exp $"); + RCSID("$Id: las.c,v 1.258 2001/07/19 16:20:26 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:4938:    pike_throw();    }   }      ptrdiff_t eval_low(node *n)   {    unsigned INT16 num_strings, num_constants;    INT32 jump;    struct svalue *save_sp = Pike_sp;    ptrdiff_t ret; + #ifdef PIKE_USE_MACHINE_CODE +  size_t num_relocations; + #endif /* PIKE_USE_MACHINE_CODE */      #ifdef PIKE_DEBUG    if(l_flag > 3 && n)    {    fprintf(stderr,"Evaluating (tree info=%x):",n->tree_info);    print_tree(n);    }   #endif       if(Pike_compiler->num_parse_error) return -1;       num_strings=Pike_compiler->new_program->num_strings;    num_constants=Pike_compiler->new_program->num_constants;    jump = DO_NOT_WARN((INT32)PC); -  + #ifdef PIKE_USE_MACHINE_CODE +  num_relocations = Pike_compiler->new_program->num_relocations; + #endif /* PIKE_USE_MACHINE_CODE */       store_linenumbers=0;    docode(dmalloc_touch(node *, n));    ins_f_byte(F_DUMB_RETURN);    store_linenumbers=1;       ret=-1;    if(!Pike_compiler->num_parse_error)    {    struct callback *tmp_callback;
pike.git/src/las.c:5040:    p_const = Pike_compiler->new_program->constants + Pike_compiler->new_program->num_constants;       free_svalue(&p_const->sval);    if (p_const->name) {    free_string(p_const->name);    p_const->name = NULL;    }    }       Pike_compiler->new_program->num_program=jump; + #ifdef PIKE_USE_MACHINE_CODE +  Pike_compiler->new_program->num_relocations = num_relocations; + #endif /* PIKE_USE_MACHINE_CODE */       return ret;   }      static node *eval(node *n)   {    node *new;    ptrdiff_t args;    if(!is_const(n) || n->token==':')    return n;