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: constants.c,v 1.47 2003/04/02 19:22:42 mast Exp $ + || $Id: constants.c,v 1.48 2003/05/31 01:14:27 mast Exp $   */      #include "global.h"
18:   #include "security.h"   #include "block_alloc.h"    - RCSID("$Id: constants.c,v 1.47 2003/04/02 19:22:42 mast Exp $"); + RCSID("$Id: constants.c,v 1.48 2003/05/31 01:14:27 mast Exp $");      struct mapping *builtin_constants = 0;   
84:    f->function=fun;    f->name=name;    f->type=type; +  f->prog=Pike_compiler->new_program;    f->flags=flags;    f->docode=docode;    f->optimize=optimize;