Branch: Tag:

2004-12-30

2004-12-30 13:40:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Moved debug and runtime flags from main to pike_embed.
Moved master path handling back from pike_embed to main.
Added find_lib_dir()
Added some support for LIBPIKE (not working yet).
Moved main() back to main.c from pike_memory.c.
Debug malloc is now initialized from init_pike().
init_pike() now gets the path to the master as the second argument.
debug and runtime options are now set via set_pike_{debug,runtime}_options().

Rev: src/main.c:1.219
Rev: src/main.h:1.24
Rev: src/pike_embed.c:1.2
Rev: src/pike_embed.h:1.2
Rev: src/pike_memory.c:1.158
Rev: src/pike_memory.h:1.50

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: main.h,v 1.23 2003/05/27 00:44:34 nilsson Exp $ + || $Id: main.h,v 1.24 2004/12/30 13:40:19 grubba Exp $   */      #ifndef MAIN_H
10:      #include "callback.h"    - PMOD_EXPORT extern int d_flag, a_flag, l_flag, c_flag, p_flag; - PMOD_EXPORT extern int debug_options, runtime_options; - PMOD_EXPORT extern int default_t_flag; -  - #ifdef TRY_USE_MMX - extern int try_use_mmx; - #endif /* TRY_USE_MMX */ -  - /* Debug options */ - #define DEBUG_SIGNALS 1 - #define NO_TAILRECURSION 2 - #define NO_PEEP_OPTIMIZING 4 - #define GC_RESET_DMALLOC 8 - #define ERRORCHECK_MUTEXES 16 -  - /* Runtime options */ - #define RUNTIME_CHECK_TYPES 1 - #define RUNTIME_STRICT_TYPES 2 -  +    /* Prototypes begin here */   PMOD_EXPORT struct callback *add_post_master_callback(callback_func call,    void *arg,
36:   PMOD_EXPORT struct callback *add_exit_callback(callback_func call,    void *arg,    callback_func free_func); - int dbm_main(int argc, char **argv); + int main(int argc, char **argv);   DECLSPEC(noreturn) void pike_do_exit(int num) ATTRIBUTE((noreturn)); - void low_init_main(void); +    void exit_main(void);   void init_main(void); - void low_exit_main(void); +    /* Prototypes end here */      #endif /* !MAIN_H */