pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:10:   #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.36 2002/05/31 22:41:23 nilsson Exp $"); + RCSID("$Id: constants.c,v 1.37 2002/06/25 14:26:40 grubba 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:143:    INT16 flags,    optimize_fun optimize,    docode_fun docode)   {    struct svalue s;    struct pike_string *n;    struct pike_type *t;    struct callable *ret;       n = make_shared_binary_string(name, name_length); - #ifdef USE_PIKE_TYPE +     t = make_pike_type(type); - #else /* !USE_PIKE_TYPE */ -  t = make_shared_binary_string(type, type_length); - #endif /* USE_PIKE_TYPE */ +    #ifdef DEBUG    check_type_string(t);   #endif    s.type=T_FUNCTION;    s.subtype=FUNCTION_BUILTIN;    add_ref(n);    ret=s.u.efun=low_make_callable(fun, n, t, flags, optimize, docode);    low_add_efun(n, &s);    free_svalue(&s);    free_string(n);