Branch: Tag:

2003-01-16

2003-01-16 16:10:12 by Martin Stjernholm <mast@lysator.liu.se>

Switched to push_function and ref_push_function in a couple of places.

Rev: src/builtin_functions.c:1.463
Rev: src/encode.c:1.161
Rev: src/interpret_functions.h:1.128

2:   || 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: interpret_functions.h,v 1.127 2003/01/12 16:00:14 mast Exp $ + || $Id: interpret_functions.h,v 1.128 2003/01/16 16:10:12 mast Exp $   */      /*
306:   });      OPCODE1(F_LFUN, "local function", 0, { -  Pike_sp->u.object=Pike_fp->current_object; -  add_ref(Pike_fp->current_object); -  Pike_sp->subtype=arg1+Pike_fp->context.identifier_level; -  Pike_sp->type=PIKE_T_FUNCTION; -  Pike_sp++; +  ref_push_function (Pike_fp->current_object, +  arg1+Pike_fp->context.identifier_level);    print_return_value();   });   
330:    }    add_ref( ((struct pike_trampoline *)(o->storage))->frame=f );    ((struct pike_trampoline *)(o->storage))->func=arg1+Pike_fp->context.identifier_level; -  push_object(o); -  /* Make it look like a function. */ -  Pike_sp[-1].subtype = pike_trampoline_program->lfuns[LFUN_CALL]; -  Pike_sp[-1].type = T_FUNCTION; +  push_function(o, pike_trampoline_program->lfuns[LFUN_CALL]);    print_return_value();   });