2001-04-09 20:54:03 +01:00
|
|
|
/* ---------------------------------- **
|
|
|
|
** Configuration Parameters **
|
|
|
|
** ---------------------------------- */
|
|
|
|
|
2003-11-05 16:00:01 +00:00
|
|
|
#define MAX_LENGTH_ANSWER 500
|
|
|
|
#define MAX_DEPTH 1000
|
|
|
|
#define MAX_BEST_TIMES 21
|
|
|
|
#define MAX_TABLE_VARS 1000
|
2001-04-09 20:54:03 +01:00
|
|
|
#define TABLE_LOCK_BUCKETS 512
|
2003-11-05 16:00:01 +00:00
|
|
|
#define TG_ANSWER_SLOTS 20
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
2005-03-04 20:30:14 +00:00
|
|
|
#define STATISTICS 1
|
2003-11-05 16:00:01 +00:00
|
|
|
#define YAPOR_ERRORS 1
|
|
|
|
#define TABLING_ERRORS 1
|
2001-04-09 20:54:03 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2003-11-05 16:00:01 +00:00
|
|
|
/* amiops.h - absmi.h */
|
|
|
|
#define BFZ_TRAIL_SCHEME 1
|
|
|
|
/*
|
|
|
|
#define BBREG_TRAIL_SCHEME 1
|
|
|
|
*/
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
2003-11-05 16:00:01 +00:00
|
|
|
/* tab.tries.c */
|
|
|
|
/*
|
|
|
|
#define ALLOC_BEFORE_CHECK 1
|
|
|
|
*/
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
2003-11-05 16:00:01 +00:00
|
|
|
#define TABLE_LOCK_AT_WRITE_LEVEL 1
|
|
|
|
/*
|
|
|
|
#define TABLE_LOCK_AT_ENTRY_LEVEL 1
|
|
|
|
#define TABLE_LOCK_AT_NODE_LEVEL 1
|
|
|
|
*/
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
2003-11-05 16:00:01 +00:00
|
|
|
#define TABLING_INNER_CUTS 1
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
2003-11-05 16:00:01 +00:00
|
|
|
#define TIMESTAMP_CHECK 1
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -------------------------- **
|
|
|
|
** Parameter Checks **
|
|
|
|
** -------------------------- */
|
|
|
|
|
|
|
|
#ifndef YAPOR
|
|
|
|
#undef YAPOR_ERRORS
|
|
|
|
#endif
|
|
|
|
#ifndef TABLING
|
|
|
|
#undef TABLING_ERRORS
|
|
|
|
#endif
|
|
|
|
#if defined(YAPOR_ERRORS) && defined(TABLING_ERRORS)
|
|
|
|
#define OPTYAP_ERRORS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef TABLING
|
|
|
|
#if !defined(BFZ_TRAIL_SCHEME) && !defined(BBREG_TRAIL_SCHEME)
|
|
|
|
#error Define a trail scheme
|
|
|
|
#endif
|
|
|
|
#if defined(BFZ_TRAIL_SCHEME) && defined(BBREG_TRAIL_SCHEME)
|
|
|
|
#error Do not define multiple trail schemes
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#undef BFZ_TRAIL_SCHEME
|
|
|
|
#undef BBREG_TRAIL_SCHEME
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(TABLING) || !defined(YAPOR)
|
|
|
|
#undef TABLING_INNER_CUTS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(YAPOR) || !defined(TABLING)
|
|
|
|
#undef TIMESTAMP_CHECK
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------ **
|
|
|
|
** **
|
|
|
|
** There are three lock schemes to access the table space. **
|
|
|
|
** **
|
|
|
|
** The TABLE_LOCK_AT_ENTRY_LEVEL scheme locks the access to the table **
|
|
|
|
** space in the entry data structure. It restricts the number of lock **
|
|
|
|
** operations needed to go through the table data structures. **
|
|
|
|
** **
|
|
|
|
** The TABLE_LOCK_AT_NODE_LEVEL scheme locks each data structure **
|
|
|
|
** before accessing it. It decreases concurrrency for workers **
|
|
|
|
** accessing commom parts of the table space. **
|
|
|
|
** **
|
|
|
|
** The TABLE_LOCK_AT_WRITE_LEVEL scheme is an hibrid scheme, it only **
|
|
|
|
** locks a table data structure when it is going to update it. **
|
|
|
|
** **
|
|
|
|
** The TABLE_LOCK_AT_WRITE_LEVEL is the default scheme. **
|
|
|
|
** **
|
|
|
|
** ------------------------------------------------------------------ */
|
|
|
|
|
|
|
|
#if defined(YAPOR) && defined(TABLING)
|
|
|
|
#if !defined(TABLE_LOCK_AT_ENTRY_LEVEL) && !defined(TABLE_LOCK_AT_NODE_LEVEL) && !defined(TABLE_LOCK_AT_WRITE_LEVEL)
|
|
|
|
#error Define a table lock scheme
|
|
|
|
#endif
|
|
|
|
#if defined(TABLE_LOCK_AT_ENTRY_LEVEL)
|
|
|
|
#if defined(TABLE_LOCK_AT_NODE_LEVEL) || defined(TABLE_LOCK_AT_WRITE_LEVEL)
|
|
|
|
#error Do not define multiple table lock schemes
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if defined(TABLE_LOCK_AT_NODE_LEVEL) && defined(TABLE_LOCK_AT_WRITE_LEVEL)
|
|
|
|
#error Do not define multiple table lock schemes
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#undef TABLE_LOCK_AT_ENTRY_LEVEL
|
|
|
|
#undef TABLE_LOCK_AT_NODE_LEVEL
|
|
|
|
#undef TABLE_LOCK_AT_WRITE_LEVEL
|
|
|
|
#endif /* YAPOR && TABLING */
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TABLE_LOCK_AT_WRITE_LEVEL
|
|
|
|
#undef ALLOC_BEFORE_CHECK
|
|
|
|
#endif
|