pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:6894: Inside #if 0
   id = ID_FROM_INT(p, i);    if (IDENTIFIER_IS_PIKE_FUNCTION(id->identifier_flags) &&    (id->func.offset == -1)) {    /* Function prototype. */    return -1;    }   #endif /* 0 */    return i;   }    - PMOD_EXPORT int find_lfun_fatal(struct program *p, ptrdiff_t lfun) + PMOD_EXPORT int find_lfun_fatal(struct program *UNUSED(p), ptrdiff_t lfun)   {    Pike_fatal("Invalid lfun number: %d\n", lfun);    return -1;   }      int lfun_lookup_id(struct pike_string *lfun_name)   {    struct svalue *id = low_mapping_string_lookup(lfun_ids, lfun_name);    if (!id) return -1;    if (TYPEOF(*id) == T_INT) return id->u.integer;
pike.git/src/program.c:12188: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG    if (loc.inherit->prog != expected) {    Pike_fatal("Failed to find expected parent storage.\n");    }   #endif       return loc.o->storage + loc.inherit->storage_offset;   }    - PMOD_EXPORT void *get_inherited_storage(int inh, struct program *expected) + PMOD_EXPORT void *get_inherited_storage(int inh, +  struct program *DEBUGUSED(expected))   {    struct inherit *i = Pike_fp->context + inh;      #ifdef PIKE_DEBUG    struct program *p = Pike_fp->current_program;    if (i >= (p->inherits + p->num_inherits)) {    Pike_fatal("Inherit out of range!\n");    }    if (i->prog != expected) {    Pike_fatal("Unexpected program at inherit #%d!\n", inh);
pike.git/src/program.c:12223:    "change_compiler_compatibility");    pop_stack();   }      #ifdef PIKE_USE_MACHINE_CODE      #ifdef HAVE_SYS_MMAN_H   #include <sys/mman.h>   #endif    + #if defined(HAVE_SYNC_INSTRUCTION_MEMORY) || defined(FLUSH_INSTRUCTION_CACHE) || !defined(USE_MY_MEXEC_ALLOC)   void make_area_executable (char *start, size_t len)   {   #ifndef USE_MY_MEXEC_ALLOC    {    /* Perform page alignment. */    void *addr = (void *)(((size_t)start) & ~(page_size-1));    size_t l = ((start + len) - ((char *)addr) +    (page_size - 1)) & ~(page_size-1);       if (mprotect(addr, l, PROT_EXEC | PROT_READ | PROT_WRITE) < 0) {
pike.git/src/program.c:12247: Inside #if undefined(USE_MY_MEXEC_ALLOC)
   }    }   #endif /* !USE_MY_MEXEC_ALLOC */      #ifdef HAVE_SYNC_INSTRUCTION_MEMORY    sync_instruction_memory(start, len);   #elif defined(FLUSH_INSTRUCTION_CACHE)    FLUSH_INSTRUCTION_CACHE(start, len);   #endif /* HAVE_SYNC_INSTRUCTION_MEMORY || FLUSH_INSTRUCTION_CACHE */   } + #else + void make_area_executable (char *UNUSED(start), size_t UNUSED(len)) + { + } + #endif      void make_program_executable(struct program *p)   {    if (!p->num_program) return;    if ((p->event_handler == compat_event_handler) &&    ((p->num_program * sizeof(p->program[0]) <=    (NUM_PROG_EVENTS * sizeof(p->event_handler))))) {    /* Only event handlers. */    return;    }       make_area_executable ((char *) p->program,    p->num_program * sizeof (p->program[0]));   }   #endif