cb22561995-10-11Fredrik Hübinette (Hubbe) /*\
06983f1996-09-22Fredrik Hübinette (Hubbe) ||| This file a part of Pike, and is copyright by Fredrik Hubinette ||| Pike is distributed as GPL (General Public License)
cb22561995-10-11Fredrik Hübinette (Hubbe) ||| See the files COPYING and DISCLAIMER for more information. \*/
24ddc71998-03-28Henrik Grubbström (Grubba)  /*
7386972001-06-30Fredrik Hübinette (Hubbe)  * $Id: main.h,v 1.16 2001/06/30 07:05:55 hubbe Exp $
24ddc71998-03-28Henrik Grubbström (Grubba)  */
5267b71995-08-09Fredrik Hübinette (Hubbe) #ifndef MAIN_H #define MAIN_H
6e37dc1996-06-21Fredrik Hübinette (Hubbe) #include "callback.h"
6f0d752000-12-16Marcus Comstedt PMOD_EXPORT extern int d_flag, t_flag, a_flag, l_flag, c_flag, p_flag; PMOD_EXPORT extern int debug_options, runtime_options; PMOD_EXPORT extern int default_t_flag;
cd83521998-02-02Fredrik Hübinette (Hubbe) 
9debfa1999-08-11Fredrik Hübinette (Hubbe) #ifdef TRY_USE_MMX extern int try_use_mmx; #endif
7d955e1999-12-13Henrik Grubbström (Grubba) /* Debug options */
cd83521998-02-02Fredrik Hübinette (Hubbe) #define DEBUG_SIGNALS 1
9b08a21998-03-31Fredrik Hübinette (Hubbe) #define NO_TAILRECURSION 2
7386972001-06-30Fredrik Hübinette (Hubbe) #define NO_PEEP_OPTIMIZING 4 #define GC_RESET_DMALLOC 8
7d955e1999-12-13Henrik Grubbström (Grubba)  /* Runtime options */ #define RUNTIME_CHECK_TYPES 1 #define RUNTIME_STRICT_TYPES 2
5267b71995-08-09Fredrik Hübinette (Hubbe)  /* Prototypes begin here */
6f0d752000-12-16Marcus Comstedt PMOD_EXPORT struct callback *add_post_master_callback(callback_func call,
6e37dc1996-06-21Fredrik Hübinette (Hubbe)  void *arg, callback_func free_func);
6f0d752000-12-16Marcus Comstedt PMOD_EXPORT struct callback *add_exit_callback(callback_func call,
61e9a01998-01-25Fredrik Hübinette (Hubbe)  void *arg, callback_func free_func);
3c0c281998-01-26Fredrik Hübinette (Hubbe) int dbm_main(int argc, char **argv);
eb2fd52000-11-06Henrik Grubbström (Grubba) DECLSPEC(noreturn) void pike_do_exit(int num) ATTRIBUTE((noreturn));
156fd51997-10-27Fredrik Hübinette (Hubbe) void low_init_main(void);
378b2d1997-02-06Fredrik Hübinette (Hubbe) void exit_main(void);
156fd51997-10-27Fredrik Hübinette (Hubbe) void init_main(void); void low_exit_main(void);
5267b71995-08-09Fredrik Hübinette (Hubbe) /* Prototypes end here */ #endif