1 
2   /* This file, dglobals.h, was generated automatically by "yap -L misc/buildheap"
3      please do not update, update misc/GLOBALS instead */
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 #define Yap_c_input_stream WL->c_input_stream
26 #define Yap_c_output_stream WL->c_output_stream
27 #define Yap_c_error_stream WL->c_error_stream
28 
29 #define OldASP WL->rinfo.old_ASP
30 #define OldLCL0 WL->rinfo.old_LCL0
31 #define OldTR WL->rinfo.old_TR
32 #define OldGlobalBase WL->rinfo.old_GlobalBase
33 #define OldH WL->rinfo.old_H
34 #define OldH0 WL->rinfo.old_H0
35 #define OldTrailBase WL->rinfo.old_TrailBase
36 #define OldTrailTop WL->rinfo.old_TrailTop
37 #define OldHeapBase WL->rinfo.old_HeapBase
38 #define OldHeapTop WL->rinfo.old_HeapTop
39 #define ClDiff WL->rinfo.cl_diff
40 #define GDiff WL->rinfo.g_diff
41 #define HDiff WL->rinfo.h_diff
42 #define GDiff0 WL->rinfo.g_diff0
43 #define GSplit WL->rinfo.g_split
44 #define LDiff WL->rinfo.l_diff
45 #define TrDiff WL->rinfo.tr_diff
46 #define XDiff WL->rinfo.x_diff
47 #define DelayDiff WL->rinfo.delay_diff
48 #define BaseDiff WL->rinfo.base_diff
49 #define ReductionsCounter WL->call_counters.reductions
50 #define PredEntriesCounter WL->call_counters.reductions_retries
51 #define RetriesCounter WL->call_counters.retries
52 #define ReductionsCounterOn WL->call_counters.reductions_on
53 #define PredEntriesCounterOn WL->call_counters.reductions_retries_on
54 #define RetriesCounterOn WL->call_counters.retries_on
55 #define Yap_InterruptsDisabled WL->interrupts_disabled
56 
57 
58 #define ConsultSp WL->consultsp
59 
60 #define ConsultCapacity WL->consultcapacity
61 
62 #define ConsultBase WL->consultbase
63 
64 #define ConsultLow WL->consultlow
65 
66 #define GlobalArena WL->global_arena
67 #define GlobalArenaOverflows WL->global_arena_overflows
68 #define DelayArenaOverflows WL->delay_arena_overflows
69 #define ArenaOverflows WL->arena_overflows
70 #define DepthArenas WL->depth_arenas
71 #define ArithError WL->arith_error
72 #define LastAssertedPred WL->last_asserted_pred
73 #define DebugOn WL->debug_on
74 #define FormatInfo WL->f_info
75 #define ScannerStack WL->scanner_stack
76 #define ScannerExtraBlocks WL->scanner_extra_blocks
77 #define BallTerm WL->ball_term
78 #define ActiveSignals WL->active_signals
79 #define IPredArity WL->i_pred_arity
80 #define ProfEnd WL->prof_end
81 #define UncaughtThrow WL->uncaught_throw
82 #define DoingUndefp WL->doing_undefp
83 #define StartLine WL->start_line
84 #define ScratchPad WL->scratchpad
85 #ifdef  COROUTINING
86 #define WokenGoals WL->woken_goals
87 #define AttsMutableList WL->atts_mutable_list
88 #endif
89 
90 #define GcGeneration WL->gc_generation
91 #define GcPhase WL->gc_phase
92 #define GcCurrentPhase WL->gc_current_phase
93 #define GcCalls WL->gc_calls
94 #define TotGcTime WL->tot_gc_time
95 #define TotGcRecovered WL->tot_gc_recovered
96 #define LastGcTime WL->last_gc_time
97 #define LastSSTime WL->last_ss_time
98 #if LOW_LEVEL_TRACER
99 #define Yap_total_choicepoints WL->total_cps
100 #endif
101 #define consult_level WL->consult_level_
102 
103 #if defined(YAPOR) || defined(THREADS)
104 #define SignalLock WL->signal_lock
105 #define WPP WL->wpp
106 
107 #define total_marked WL->tot_marked
108 #define total_oldies WL->tot_oldies
109 #if DEBUG && COROUTINING
110 #define total_smarked WL->tot_smarked
111 #endif
112 #define current_B WL->wl_current_B
113 #define prev_HB WL->wl_prev_HB
114 #define HGEN WL->hgen
115 #define iptop WL->ip_top
116 #if GC_NO_TAGS
117 #define Yap_bp WL->b_p
118 #endif
119 #if defined(TABLING) || defined(SBA)
120 #define sTR WL->wl_sTR
121 #define sTR0 WL->wl_sTR0
122 #define new_TR WL->new_tr
123 #else
124 #define sTR WL->wl_sTR
125 #define sTR0 WL->wl_sTR0
126 #define new_TR WL->new_tr
127 #endif
128 #define cont_top0 WL->conttop0
129 #define cont_top WL->conttop
130 #define discard_trail_entries WL->disc_trail_entries
131 #define gc_ma_hash_table WL->Gc_ma_hash_table
132 #define gc_ma_h_top WL->Gc_ma_h_top
133 #define gc_ma_h_list WL->Gc_ma_h_list
134 #define gc_timestamp WL->Gc_timestamp
135 #define db_vec WL->DB_vec
136 #define db_vec0 WL->DB_vec0
137 #define db_root WL->DB_root
138 #define db_nil WL->DB_nil
139 #endif /* defined(YAPOR) || defined(THREADS) */
140 #define Yap_gc_restore WL->gc_restore
141 #define DynamicArrays WL->dynamic_arrays
142 #define StaticArrays WL->static_arrays
143 #define GlobalVariables WL->global_variables
144 #define Yap_AllowRestart WL->allow_restart
145 
146 #define Yap_CMemFirstBlock WL->cmem_first_block
147 #define Yap_CMemFirstBlockSz WL->cmem_first_block_sz
148 
149 #define Yap_LabelFirstArray WL->label_first_array
150 #define Yap_LabelFirstArraySz WL->label_first_array_sz
151 
152 #define putc_curp WL->putc_curp_
153 #define putc_cur_buf WL->putc_cur_buf_
154 #define putc_cur_lim WL->putc_cur_lim_
155 #define putc_cur_flags WL->putc_cur_flags_
156 #define SWI_buffers WL->SWI_buffers_
157 #define SWI_buffers_sz WL->SWI_buffers_sz_
158 #define SWI_buf_index WL->SWI_buf_index_
159 #define execution WL->_execution
160 
161 #if (defined(YAPOR) || defined(TABLING)) && defined(THREADS)
162 #define WORKER WL->worker
163 #endif
164 #ifdef THREADS
165 #define ThreadHandle WL->thread_handle
166 #define FOREIGN_ThreadHandle(wid)  (Yap_WLocal[(wid)].thread_handle)
167 #define MY_ThreadHandle	       (Yap_WLocal[worker_id].thread_handle)
168 #endif
169 
170 
171 
172 
173 
174 #if THREADS
175 
176 #define NOfThreads Yap_global->n_of_threads
177 
178 #define NOfThreadsCreated Yap_global->n_of_threads_created
179 
180 #define ThreadsTotalTime Yap_global->threads_total_time
181 #endif
182 
183 #if defined(YAPOR) || defined(THREADS)
184 
185 #define BGL Yap_global->bgl
186 #endif
187 #define FSWIStream Yap_global->f_swi_stream
188 #define SWIGetc Yap_global->swi_getc
189 #define SWIPutc Yap_global->swi_putc
190 #define SWIWideGetc Yap_global->swi_wgetc
191 #define SWIWidePutc Yap_global->swi_wputc
192 #define SWIClose Yap_global->swi_close
193 #define SWIFlush Yap_global->swi_flush
194 #define SWIGetStream Yap_global->swi_get_stream_f
195 #define SWIGetStreamPosition Yap_global->swi_get_stream_position_f
196 
197 #define Yap_AllowLocalExpansion Yap_global->allow_local_expansion
198 #define Yap_AllowGlobalExpansion Yap_global->allow_global_expansion
199 #define Yap_AllowTrailExpansion Yap_global->allow_trail_expansion
200 #define SizeOfOverflow Yap_global->size_of_overflow
201 
202 #define AGcLastCall Yap_global->agc_last_call
203 
204 #define AGcThreshold Yap_global->agc_threshold
205 #define AGCHook Yap_global->agc_hook
206 
207 #if HAVE_LIBREADLINE
208 #define ReadlineBuf Yap_global->readline_buf
209 #define ReadlinePos Yap_global->readline_pos
210 #endif
211 
212 #ifdef THREADS
213 #define ThreadHandlesLock Yap_global->thread_handles_lock
214 #endif
215 
216 #if defined(YAPOR) || defined(TABLING)
217 #define GLOBAL Yap_global->global
218 #define REMOTE Yap_global->remote
219 #endif
220 
221 #define Yap_Initialised Yap_global->initialised
222 #define Yap_InitialisedFromPL Yap_global->initialised_from_pl
223 #define Yap_PL_Argc Yap_global->pl_argc
224 #define Yap_PL_Argv Yap_global->pl_argv
225 
226 #define Yap_HaltHooks Yap_global->yap_halt_hook
227 
228