Branch: Tag:

2003-05-31

2003-05-31 01:14:27 by Martin Stjernholm <mast@lysator.liu.se>

Made function_program work for non-efun C functions.

Rev: src/builtin.cmod:1.137
Rev: src/constants.c:1.48
Rev: src/constants.h:1.31

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: builtin.cmod,v 1.136 2003/05/15 15:33:30 mast Exp $ + || $Id: builtin.cmod,v 1.137 2003/05/31 01:14:27 mast Exp $   */      #include "global.h"
963:    case PIKE_T_FUNCTION:    {    struct program *p; -  if(func->subtype == FUNCTION_BUILTIN) break; +  if(func->subtype == FUNCTION_BUILTIN) +  p = func->u.efun->prog; +  else    p = func->u.object->prog;    if(p == pike_trampoline_program)    {