pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:1:   /*   || 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"   #include "constants.h"   #include "pike_macros.h"   #include "program.h"   #include "pike_types.h"   #include "stralloc.h"   #include "pike_memory.h"   #include "interpret.h"   #include "mapping.h"   #include "pike_error.h"   #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;      PMOD_EXPORT struct mapping *get_builtin_constants(void)   {    return builtin_constants;   }      void low_add_efun(struct pike_string *name, struct svalue *fun)   {
pike.git/src/constants.c:77:    struct pike_type *type,    int flags,    optimize_fun optimize,    docode_fun docode)   {    struct callable *f=alloc_callable();    INIT_PIKE_MEMOBJ(f);    f->function=fun;    f->name=name;    f->type=type; +  f->prog=Pike_compiler->new_program;    f->flags=flags;    f->docode=docode;    f->optimize=optimize;    f->internal_flags = global_callable_flags;   #ifdef PIKE_DEBUG    {    struct pike_type *z = check_call(function_type_string, type, 0);    f->may_return_void = (z == void_type_string);    if(!z) Pike_fatal("Function has no valid return type.\n");    free_type(z);