e576bb2002-10-11Martin Nilsson /* || 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.
783ab42003-05-27Martin Nilsson || $Id: main.h,v 1.23 2003/05/27 00:44:34 nilsson Exp $
e576bb2002-10-11Martin Nilsson */
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"
6198092003-01-08Martin Stjernholm PMOD_EXPORT extern int d_flag, a_flag, l_flag, c_flag, p_flag;
6f0d752000-12-16Marcus Comstedt 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;
783ab42003-05-27Martin Nilsson #endif /* TRY_USE_MMX */
9debfa1999-08-11Fredrik Hübinette (Hubbe) 
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
01185d2003-04-01Martin Stjernholm #define ERRORCHECK_MUTEXES 16
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 */
783ab42003-05-27Martin Nilsson #endif /* !MAIN_H */