pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:9019:    INT_TYPE *linep)   {    struct reference *ref = PTR_FROM_INT(p, fun);    struct identifier *id = ID_FROM_PTR(p, ref);    p = PROG_FROM_PTR(p, ref);    if (id->filename_strno >= p->num_strings) return NULL;    if (linep) *linep = id->linenumber;    return p->strings[id->filename_strno];   }    - PMOD_EXPORT int low_quick_add_function(struct pike_string * name_tmp, + PMOD_EXPORT int quick_add_function(const char *name, int name_length,    void (*cfun)(INT32),    const char *type,    int UNUSED(type_length),    unsigned flags,    unsigned opt_flags)   {    int ret; -  +  struct pike_string * name_tmp = make_shared_binary_string(name, name_length);    struct pike_type *type_tmp;    union idptr tmp;   /* fprintf(stderr,"ADD_FUNC: %s\n",name); */    type_tmp = make_pike_type(type);       if(cfun)    {    tmp.c_fun=cfun;    ret=define_function(name_tmp,    type_tmp,