2011-03-23 16:45:47 +00:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
/* This file, hglobals.h, was generated automatically by "yap -L misc/buildlocalglobal"
|
2011-03-23 16:45:47 +00:00
|
|
|
please do not update, update misc/GLOBALS instead */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-25 18:01:17 +00:00
|
|
|
typedef struct global_data {
|
2011-03-23 16:45:47 +00:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
int Initialised_;
|
|
|
|
int InitialisedFromPL_;
|
|
|
|
int PL_Argc_;
|
|
|
|
char** PL_Argv_;
|
2011-05-09 19:36:51 +01:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
struct halt_hook* HaltHooks_;
|
2011-05-09 19:36:51 +01:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
int AllowLocalExpansion_;
|
|
|
|
int AllowGlobalExpansion_;
|
|
|
|
int AllowTrailExpansion_;
|
|
|
|
UInt SizeOfOverflow_;
|
2011-05-09 19:36:51 +01:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
UInt AGcThreshold_;
|
|
|
|
Agc_hook AGCHook_;
|
2011-05-09 19:36:51 +01:00
|
|
|
|
2011-03-23 16:45:47 +00:00
|
|
|
#if THREADS
|
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
UInt NOfThreads_;
|
2011-03-23 16:45:47 +00:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
UInt NOfThreadsCreated_;
|
2011-03-23 16:45:47 +00:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
UInt ThreadsTotalTime_;
|
2011-03-23 16:45:47 +00:00
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
lockvar ThreadHandlesLock_;
|
2011-05-25 16:40:36 +01:00
|
|
|
#endif
|
2011-03-23 16:45:47 +00:00
|
|
|
#if defined(YAPOR) || defined(THREADS)
|
|
|
|
|
2011-05-11 18:22:58 +01:00
|
|
|
lockvar BGL_;
|
2011-03-23 16:45:47 +00:00
|
|
|
#endif
|
|
|
|
#if defined(YAPOR) || defined(TABLING)
|
2011-05-11 18:22:58 +01:00
|
|
|
struct global_optyap_data optyap_data_;
|
2011-05-09 19:36:51 +01:00
|
|
|
#endif /* YAPOR || TABLING */
|
2011-05-25 16:40:36 +01:00
|
|
|
|
|
|
|
int PrologShouldHandleInterrupts_;
|
|
|
|
|
|
|
|
#if defined(THREADS)
|
|
|
|
pthread_t master_thread_;
|
|
|
|
#endif /* THREADS */
|
|
|
|
|
|
|
|
YP_FILE* stdout_;
|
|
|
|
YP_FILE* stderr_;
|
|
|
|
|
|
|
|
char** argv_;
|
|
|
|
int argc_;
|
|
|
|
|
|
|
|
#ifdef COROUTINING
|
|
|
|
|
|
|
|
ext_op attas_[attvars_ext+1];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int agc_calls_;
|
|
|
|
YAP_ULONG_LONG agc_collected_;
|
|
|
|
|
|
|
|
Int tot_agc_time_;
|
|
|
|
|
|
|
|
Int tot_agc_recovered_;
|
|
|
|
|
|
|
|
#if HAVE_MMAP
|
|
|
|
struct MMAP_ARRAY_BLOCK* mmap_arrays_;
|
|
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
|
|
|
char Option_[20];
|
|
|
|
YP_FILE* logfile_;
|
|
|
|
|
2011-06-20 14:49:24 +01:00
|
|
|
|
2011-05-25 16:40:36 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
Int ProfCalls_;
|
|
|
|
Int ProfGCs_;
|
|
|
|
Int ProfHGrows_;
|
|
|
|
Int ProfSGrows_;
|
|
|
|
Int ProfMallocs_;
|
|
|
|
Int ProfOn_;
|
|
|
|
Int ProfOns_;
|
|
|
|
struct RB_red_blk_node* ProfilerRoot_;
|
|
|
|
struct RB_red_blk_node* ProfilerNil_;
|
|
|
|
char* DIRNAME_;
|
|
|
|
#if defined(COFF) || defined(A_OUT)
|
|
|
|
|
|
|
|
char Executable_[YAP_FILENAME_MAX];
|
|
|
|
#endif
|
2011-07-22 12:09:33 +01:00
|
|
|
int OpaqueHandlersCount_;
|
|
|
|
struct opaque_handler_struct* OpaqueHandlers_;
|
2011-05-25 16:40:36 +01:00
|
|
|
#if __simplescalar__
|
|
|
|
char pwd_[YAP_FILENAME_MAX];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2011-03-23 16:45:47 +00:00
|
|
|
} w_shared;
|