pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:9:   #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 "block_alloc.h"    - RCSID("$Id: constants.c,v 1.26 2001/02/20 22:03:47 grubba Exp $"); + RCSID("$Id: constants.c,v 1.27 2001/02/23 14:29:35 grubba Exp $");      struct mapping *builtin_constants = 0;      PMOD_EXPORT struct mapping *get_builtin_constants(void)   {    if(!builtin_constants)    builtin_constants=allocate_mapping(20);       return builtin_constants;   }
pike.git/src/constants.c:83:    f->refs=1;    f->function=fun;    f->name=name;    f->type=type;    f->flags=flags;    f->docode=docode;    f->optimize=optimize;   #ifdef PIKE_DEBUG    {    struct pike_type *z = check_call(function_type_string, type, 0); -  f->may_return_void= z == void_type_string; +  f->may_return_void = (z == void_type_string);    if(!z) fatal("Gnapp!\n");    free_type(z);    }   #endif    return f;   }      PMOD_EXPORT struct callable *make_callable(c_fun fun,    char *name,    char *type,    INT16 flags,    optimize_fun optimize,    docode_fun docode)   { -  return low_make_callable(fun,make_shared_string(name),parse_type(type),flags,optimize,docode); +  return low_make_callable(fun, make_shared_string(name), parse_type(type), +  flags, optimize, docode);   }      PMOD_EXPORT struct callable *add_efun2(char *name,    c_fun fun,    char *type,    INT16 flags,    optimize_fun optimize,    docode_fun docode)   {    struct svalue s;