1 2 /* This file, dhstruct.h, was generated automatically by "yap -L misc/buildheap" 3 please do not update, update misc/HEAPFIELDS instead */ 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 #define Yap_HoleSize Yap_heap_regs->hole_size 33 #define Yap_av Yap_heap_regs->av_ 34 #if USE_DL_MALLOC 35 #define Yap_MemoryHoles Yap_heap_regs->memory_holes 36 #define Yap_NOfMemoryHoles Yap_heap_regs->nof_memory_holes 37 #if defined(YAPOR) || defined(THREADS) 38 #define DLMallocLock Yap_heap_regs->dlmalloc_lock 39 #endif 40 #endif 41 #if USE_DL_MALLOC || (USE_SYSTEM_MALLOC && HAVE_MALLINFO) 42 #ifndef HeapUsed 43 #define HeapUsed Yap_givemallinfo() 44 #endif 45 #define NotHeapUsed Yap_heap_regs->heap_used 46 #else 47 #define HeapUsed Yap_heap_regs->heap_used 48 #endif 49 #define HeapMax Yap_heap_regs->heap_max 50 #define HeapTop Yap_heap_regs->heap_top 51 #define HeapLim Yap_heap_regs->heap_lim 52 #define FreeBlocks Yap_heap_regs->free_blocks 53 #if defined(YAPOR) || defined(THREADS) 54 #define FreeBlocksLock Yap_heap_regs->free_blocks_lock 55 #define HeapUsedLock Yap_heap_regs->heap_used_lock 56 #define HeapTopLock Yap_heap_regs->heap_top_lock 57 #define HeapTopOwner Yap_heap_regs->heap_top_owner 58 #endif 59 60 61 #if USE_THREADED_CODE 62 #define OP_RTABLE Yap_heap_regs->op_rtable 63 #endif 64 65 #define EXECUTE_CPRED_OP_CODE Yap_heap_regs->execute_cpred_op_code 66 #define EXPAND_OP_CODE Yap_heap_regs->expand_op_code 67 #define FAIL_OPCODE Yap_heap_regs->fail_op 68 #define INDEX_OPCODE Yap_heap_regs->index_op 69 #define LOCKPRED_OPCODE Yap_heap_regs->lockpred_op 70 #define ORLAST_OPCODE Yap_heap_regs->orlast_op 71 #define UNDEF_OPCODE Yap_heap_regs->undef_op 72 73 #define NOfAtoms Yap_heap_regs->n_of_atoms 74 #define AtomHashTableSize Yap_heap_regs->atom_hash_table_size 75 #define WideAtomHashTableSize Yap_heap_regs->wide_atom_hash_table_size 76 #define NOfWideAtoms Yap_heap_regs->n_of_wide_atoms 77 #define INVISIBLECHAIN Yap_heap_regs->invisiblechain 78 #define WideHashChain Yap_heap_regs->wide_hash_chain 79 #define HashChain Yap_heap_regs->hash_chain 80 81 82 #ifdef EUROTRA 83 #define TermDollarU Yap_heap_regs->term_dollar_u 84 #endif 85 #define TermProlog Yap_heap_regs->term_prolog 86 #define TermReFoundVar Yap_heap_regs->term_refound_var 87 #define USER_MODULE Yap_heap_regs->user_module 88 #define IDB_MODULE Yap_heap_regs->idb_module 89 #define ATTRIBUTES_MODULE Yap_heap_regs->attributes_module 90 #define CHARSIO_MODULE Yap_heap_regs->charsio_module 91 #define TERMS_MODULE Yap_heap_regs->terms_module 92 #define SYSTEM_MODULE Yap_heap_regs->system_module 93 #define OPERATING_SYSTEM_MODULE Yap_heap_regs->operating_system_module 94 #define READUTIL_MODULE Yap_heap_regs->readutil_module 95 #define HACKS_MODULE Yap_heap_regs->hacks_module 96 #define ARG_MODULE Yap_heap_regs->arg_module 97 #define GLOBALS_MODULE Yap_heap_regs->globals_module 98 #define SWI_MODULE Yap_heap_regs->swi_module 99 100 101 102 #define CurrentModules Yap_heap_regs->current_modules 103 104 105 106 107 #define Yap_ExecutionMode Yap_heap_regs->execution_mode 108 109 #define PredHash Yap_heap_regs->pred_hash 110 #if defined(YAPOR) || defined(THREADS) 111 #define PredHashRWLock Yap_heap_regs->pred_hash_rw_lock 112 #endif 113 #define PredsInHashTable Yap_heap_regs->preds_in_hash_table 114 #define PredHashTableSize Yap_heap_regs->pred_hash_table_size 115 116 #define CreepCode Yap_heap_regs->creep_code 117 #define UndefCode Yap_heap_regs->undef_code 118 #define SpyCode Yap_heap_regs->spy_code 119 #define PredFail Yap_heap_regs->pred_fail 120 #define PredTrue Yap_heap_regs->pred_true 121 #ifdef COROUTINING 122 #define WakeUpCode Yap_heap_regs->wake_up_code 123 #endif 124 #define PredGoalExpansion Yap_heap_regs->pred_goal_expansion 125 #define PredMetaCall Yap_heap_regs->pred_meta_call 126 #define PredDollarCatch Yap_heap_regs->pred_dollar_catch 127 #define PredRecordedWithKey Yap_heap_regs->pred_recorded_with_key 128 #define PredLogUpdClause Yap_heap_regs->pred_log_upd_clause 129 #define PredLogUpdClauseErase Yap_heap_regs->pred_log_upd_clause_erase 130 #define PredLogUpdClause0 Yap_heap_regs->pred_log_upd_clause0 131 #define PredStaticClause Yap_heap_regs->pred_static_clause 132 #define PredThrow Yap_heap_regs->pred_throw 133 #define PredHandleThrow Yap_heap_regs->pred_handle_throw 134 #define PredIs Yap_heap_regs->pred_is 135 #define PredSafeCallCleanup Yap_heap_regs->pred_safe_call_cleanup 136 #define PredRestoreRegs Yap_heap_regs->pred_restore_regs 137 #ifdef YAPOR 138 #define PredGetwork Yap_heap_regs->pred_getwork 139 #define PredGetworkSeq Yap_heap_regs->pred_getwork_seq 140 #endif /* YAPOR */ 141 142 #ifdef LOW_LEVEL_TRACER 143 #define Yap_do_low_level_trace Yap_heap_regs->yap_do_low_level_trace 144 #if defined(YAPOR) || defined(THREADS) 145 #define Yap_low_level_trace_lock Yap_heap_regs->low_level_trace_lock 146 #endif 147 #endif 148 149 #define Yap_ClauseSpace Yap_heap_regs->clause_space 150 #define Yap_IndexSpace_Tree Yap_heap_regs->index_space_Tree 151 #define Yap_IndexSpace_EXT Yap_heap_regs->index_space_EXT 152 #define Yap_IndexSpace_SW Yap_heap_regs->index_space_SW 153 #define Yap_LUClauseSpace Yap_heap_regs->lu_clause_space 154 #define Yap_LUIndexSpace_Tree Yap_heap_regs->lu_index_space_Tree 155 #define Yap_LUIndexSpace_CP Yap_heap_regs->lu_index_space_CP 156 #define Yap_LUIndexSpace_EXT Yap_heap_regs->lu_index_space_EXT 157 #define Yap_LUIndexSpace_SW Yap_heap_regs->lu_index_space_SW 158 159 #define COMMA_CODE Yap_heap_regs->comma_code 160 #define DUMMYCODE Yap_heap_regs->dummycode 161 #define FAILCODE Yap_heap_regs->failcode 162 #define NOCODE Yap_heap_regs->nocode 163 #define ENV_FOR_TRUSTFAIL Yap_heap_regs->env_for_trustfail 164 #define TRUSTFAILCODE Yap_heap_regs->trustfailcode 165 #define ENV_FOR_YESCODE Yap_heap_regs->env_for_yescode 166 #define YESCODE Yap_heap_regs->yescode 167 #define RTRYCODE Yap_heap_regs->rtrycode 168 #ifdef BEAM 169 #define BEAM_RETRY_CODE Yap_heap_regs->beam_retry_code 170 #endif /* BEAM */ 171 #ifdef YAPOR 172 #define SEQUENTIAL_IS_DEFAULT Yap_heap_regs->seq_def 173 #define GETWORK Yap_heap_regs->getwork_code 174 #define GETWORK_SEQ Yap_heap_regs->getwork_seq_code 175 #define GETWORK_FIRST_TIME Yap_heap_regs->getwork_first_time 176 #endif /* YAPOR */ 177 #ifdef TABLING 178 #define LOAD_ANSWER Yap_heap_regs->table_load_answer_code 179 #define TRY_ANSWER Yap_heap_regs->table_try_answer_code 180 #define ANSWER_RESOLUTION Yap_heap_regs->table_answer_resolution_code 181 #define COMPLETION Yap_heap_regs->table_completion_code 182 #endif /* TABLING */ 183 184 185 186 187 #define P_before_spy Yap_heap_regs->debugger_p_before_spy 188 189 #define RETRY_C_RECORDEDP_CODE Yap_heap_regs->retry_recordedp_code 190 #define RETRY_C_RECORDED_K_CODE Yap_heap_regs->retry_recorded_k_code 191 192 #define PROFILING Yap_heap_regs->system_profiling 193 #define CALL_COUNTING Yap_heap_regs->system_call_counting 194 #define PRED_GOAL_EXPANSION_ALL Yap_heap_regs->system_pred_goal_expansion_all 195 #define PRED_GOAL_EXPANSION_FUNC Yap_heap_regs->system_pred_goal_expansion_func 196 #define PRED_GOAL_EXPANSION_ON Yap_heap_regs->system_pred_goal_expansion_on 197 #define optimizer_on Yap_heap_regs->compiler_optimizer_on 198 #define compile_mode Yap_heap_regs->compiler_compile_mode 199 #define profiling Yap_heap_regs->compiler_profiling 200 #define call_counting Yap_heap_regs->compiler_call_counting 201 202 #define compile_arrays Yap_heap_regs->compiler_compile_arrays 203 204 #if defined(YAPOR) || defined(THREADS) 205 #define DBTermsListLock Yap_heap_regs->dbterms_list_lock 206 #endif 207 #define DBTermsList Yap_heap_regs->dbterms_list 208 209 #define ExpandClausesFirst Yap_heap_regs->expand_clauses_first 210 #define ExpandClausesLast Yap_heap_regs->expand_clauses_last 211 #define Yap_ExpandClauses Yap_heap_regs->expand_clauses 212 #if defined(YAPOR) || defined(THREADS) 213 #define ExpandClausesListLock Yap_heap_regs->expand_clauses_list_lock 214 #define OpListLock Yap_heap_regs->op_list_lock 215 #endif 216 217 #ifdef DEBUG 218 #define Yap_NewCps Yap_heap_regs->new_cps 219 #define Yap_LiveCps Yap_heap_regs->live_cps 220 #define Yap_DirtyCps Yap_heap_regs->dirty_cps 221 #define Yap_FreedCps Yap_heap_regs->freed_cps 222 #endif 223 #define Yap_expand_clauses_sz Yap_heap_regs->expand_clauses_sz 224 225 #define UdiControlBlocks Yap_heap_regs->udi_control_blocks 226 227 228 #define STATIC_PREDICATES_MARKED Yap_heap_regs->static_predicates_marked 229 230 #define INT_KEYS Yap_heap_regs->IntKeys 231 #define INT_LU_KEYS Yap_heap_regs->IntLUKeys 232 #define INT_BB_KEYS Yap_heap_regs->IntBBKeys 233 234 #define INT_KEYS_SIZE Yap_heap_regs->int_keys_size 235 #define INT_KEYS_TIMESTAMP Yap_heap_regs->int_keys_timestamp 236 #define INT_BB_KEYS_SIZE Yap_heap_regs->int_bb_keys_size 237 238 #define UPDATE_MODE Yap_heap_regs->update_mode 239 240 #define DBErasedMarker Yap_heap_regs->db_erased_marker 241 #define LogDBErasedMarker Yap_heap_regs->logdb_erased_marker 242 243 #define DeadStaticClauses Yap_heap_regs->dead_static_clauses 244 #define DeadMegaClauses Yap_heap_regs->dead_mega_clauses 245 #define DeadStaticIndices Yap_heap_regs->dead_static_indices 246 #define DBErasedList Yap_heap_regs->db_erased_list 247 #define DBErasedIList Yap_heap_regs->db_erased_ilist 248 #if defined(YAPOR) || defined(THREADS) 249 #define DeadStaticClausesLock Yap_heap_regs->dead_static_clauses_lock 250 #define DeadMegaClausesLock Yap_heap_regs->dead_mega_clauses_lock 251 #define DeadStaticIndicesLock Yap_heap_regs->dead_static_indices_lock 252 #endif 253 #ifdef COROUTINING 254 255 #define NUM_OF_ATTS Yap_heap_regs->num_of_atts 256 257 #define Yap_AttsSize Yap_heap_regs->atts_size 258 #endif 259 260 #define yap_flags Yap_heap_regs->yap_flags_field 261 262 #define OpList Yap_heap_regs->op_list 263 264 265 #define Stream Yap_heap_regs->yap_streams 266 267 #define NOfFileAliases Yap_heap_regs->n_of_file_aliases 268 #define SzOfFileAliases Yap_heap_regs->sz_of_file_aliases 269 #define FileAliases Yap_heap_regs->file_aliases 270 271 #define AtPrompt Yap_heap_regs->atprompt 272 #define Prompt Yap_heap_regs->prompt 273 274 #define CharConversionTable Yap_heap_regs->char_conversion_table 275 #define CharConversionTable2 Yap_heap_regs->char_conversion_table2 276 277 #define max_depth Yap_heap_regs->maxdepth 278 #define max_list Yap_heap_regs->axlist 279 #define max_write_args Yap_heap_regs->maxwriteargs 280 281 #define ParserErrorStyle Yap_heap_regs->parser_error_style 282 283 #define Yap_LibDir Yap_heap_regs->yap_lib_dir 284 285 #define LastWtimePtr Yap_heap_regs->last_wtime 286 287 #define output_msg Yap_heap_regs->debugger_output_msg 288 #if LOW_PROF 289 #define ProfilerOn Yap_heap_regs->profiler_on 290 #define Yap_OffLineProfiler Yap_heap_regs->offline_profiler 291 #define FProf Yap_heap_regs->f_prof 292 #define FPreds Yap_heap_regs->f_preds 293 #define ProfPreds Yap_heap_regs->prof_preds 294 #endif /* LOW_PROF */ 295 296 #define ForeignCodeLoaded Yap_heap_regs->foreign_code_loaded 297 #define ForeignCodeBase Yap_heap_regs->foreign_code_base 298 #define ForeignCodeTop Yap_heap_regs->foreign_code_top 299 #define ForeignCodeMax Yap_heap_regs->foreign_code_max 300 301 #define Yap_Records Yap_heap_regs->yap_records 302 303 #define SWI_Atoms Yap_heap_regs->swi_atoms 304 #define SWI_Functors Yap_heap_regs->swi_functors 305 #define SWI_ReverseHash Yap_heap_regs->swi_reverse_hash 306 307 #define SWI_Blobs Yap_heap_regs->swi_blobs 308