pike.git
/
src
/
constants.c
version
»
Context lines:
10
20
40
80
file
none
3
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 "error.h" #include "block_alloc.h"
-
RCSID("$Id: constants.c,v 1.
22
2000/
07
/
28
17
:
16
:54
hubbe
Exp $");
+
RCSID("$Id: constants.c,v 1.
23
2000/
08
/
10
14
:
46
:54
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:127:
free_svalue(&s); free_string(n); return ret; } PMOD_EXPORT struct callable *add_efun(char *name, c_fun fun, char *type, INT16 flags) { return add_efun2(name,fun,type,flags,0,0); }
-
PMOD_EXPORT struct callable *quick_add_efun(char *name,
int
name_length,
+
PMOD_EXPORT struct callable *quick_add_efun(char *name,
ptrdiff_t
name_length,
c_fun fun,
-
char *type,
int
type_length,
+
char *type,
ptrdiff_t
type_length,
INT16 flags, optimize_fun optimize, docode_fun docode) { struct svalue s; struct pike_string *n,*t; struct callable *ret; n=make_shared_binary_string(name,name_length); t=make_shared_binary_string(type,type_length);