pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:86:      static void low_enter_compiler(struct object *ce, int inherit);   static void exit_program_struct(struct program *);   static size_t add_xstorage(size_t size,    size_t alignment,    ptrdiff_t modulo_orig);      static struct block_allocator program_allocator = BA_INIT_PAGES(sizeof(struct program), 4);      ATTRIBUTE((malloc)) - struct program * alloc_program() { + struct program * alloc_program(void) {    return ba_alloc(&program_allocator);   }      void really_free_program(struct program * p) {    exit_program_struct(p);    ba_free(&program_allocator, p);   }      void count_memory_in_programs(size_t *num, size_t *_size) {    size_t size;    struct program *p;    ba_count_all(&program_allocator, num, &size);    for(p=first_program;p;p=p->next) {    size+=p->total_size - sizeof (struct program);    }    *_size = size;   }    - void free_all_program_blocks() { + void free_all_program_blocks(void) {    ba_destroy(&program_allocator);   }      /* #define COMPILER_DEBUG */   /* #define PROGRAM_BUILD_DEBUG */      #ifdef COMPILER_DEBUG   #define CDFPRINTF(X) fprintf X   #ifndef PIKE_THREADS   /* The CDFPRINTF lines wants to print lock_depth, so fake one of those */