pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:1013:    INT_TYPE linenumber);   PMOD_EXPORT void exit_compiler(void);   struct program *compile(struct pike_string *aprog,    struct object *ahandler,    int amajor, int aminor,    struct program *atarget,    struct object *aplaceholder);   PMOD_EXPORT int pike_add_function2(const char *name, void (*cfun)(INT32),    const char *type, unsigned flags,    unsigned opt_flags); - PMOD_EXPORT int quick_add_function(const char *name, -  int name_length, + PMOD_EXPORT int low_quick_add_function(const struct pike_string *name_tmp,    void (*cfun)(INT32),    const char *type,    int type_length,    unsigned flags,    unsigned opt_flags);   void check_all_programs(void);   void placeholder_index(INT32 args);   void init_program(void);   void cleanup_program(void);   PMOD_EXPORT void visit_program (struct program *p, int action, void *extra);
pike.git/src/program.h:1078:      static INLINE int PIKE_UNUSED_ATTRIBUTE FIND_LFUN(struct program * p, int lfun) {   #ifdef PIKE_DEBUG    dmalloc_touch(struct program*, p);    if (lfun < 0) return find_lfun_fatal(p, lfun);   #endif    if (p->flags & PROGRAM_FIXED && lfun < NUM_LFUNS) return p->lfuns[lfun];    return low_find_lfun(p, lfun);   }    + #define quick_add_function(NAME, NLEN, FUNC, TYPE, TLEN, FLAGS, OPT) \ +  low_quick_add_function(__builtin_constant_p(NAME) \ +  ? make_shared_static_string(NAME, NLEN, eightbit) \ +  : make_shared_binary_string(NAME, NLEN), \ +  FUNC, TYPE, TLEN, FLAGS, OPT)    -  +    #ifndef PIKE_USE_MACHINE_CODE   #define make_program_executable(X)   #endif      #define ADD_FUNCTION(NAME, FUNC, TYPE, FLAGS) \    quick_add_function(NAME, CONSTANT_STRLEN(NAME), FUNC, TYPE,\    CONSTANT_STRLEN(TYPE), FLAGS, \    OPT_SIDE_EFFECT|OPT_EXTERNAL_DEPEND)      #define ADD_PROTOTYPE(NAME, TYPE, FLAGS) \