pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:10:   #include "pike_types.h"   #include "stralloc.h"   #include "pike_memory.h"   #include "interpret.h"   #include "mapping.h"   #include "error.h"      static INT32 num_callable=0;   static struct mapping *builtin_constants = 0;    - struct mapping *get_builtin_constants() + struct mapping *get_builtin_constants(void)   {    if(!builtin_constants)    builtin_constants=allocate_mapping(20);       return builtin_constants;   }      void low_add_efun(struct pike_string *name, struct svalue *fun)   {    struct svalue s;
pike.git/src/constants.c:106:    low_add_efun(n, &s);    free_svalue(&s);    free_string(n);   }      void add_efun(char *name, c_fun fun, char *type, INT16 flags)   {    add_efun2(name,fun,type,flags,0,0);   }    - void cleanup_added_efuns() + void cleanup_added_efuns(void)   {    if(builtin_constants)    {    free_mapping(builtin_constants);    builtin_constants=0;    }   }   void count_memory_in_callables(INT32 *num_, INT32 *size_)   {    *num_=num_callable;    *size_=num_callable*sizeof(struct callable);   }