Wild Life: def_const.h Source File

Wild Life 2.30

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros
def_const.h
Go to the documentation of this file.
1
11 #define least_sel 0
12
18 #define greatest_sel 1
19
25 #define op_sel 2
26
27 // from c_life.h
28
34 #define WFno 0
35
41 #define WFyes 1
42
47 #define WFmore 2
48
49 // from externs.h
50
56 #define WORDALIGN 1
57
63 #define WORD sizeof(long)
64
65 #ifdef WORDALIGN
66 #define ALIGN WORD
67 #else
68 #define ALIGN 8
69 #endif
70
76 #define TS 1
77
78 #ifdef CLIFE
79 #include "blockdef.h"
80 #endif /* CLIFE */
81
82 /*************************** CONSTANTS **************************/
83
90 #define LOCALSETUP
91
98 #define LOCALSETUPFILE "./.set_up"
99
100 /* RM: Mar 1 1994: replaced macros with variables. */
101
102 /* Memory is determined in words by the variable "alloc_words", this may be
103 specified on the command line and defaults to the macro "ALLOC_WORDS". mem_size
104 is in bytes and is the product of alloc_words by the size of a machine word.
105 This system is thus consistent between 32 and 64-bit architectures: the same
106 number of psi-terms can be allocated in either.
107 */
108
109 // from extern.h
110
117 #define GC_THRESHOLD (alloc_words>>3)
118
125 #define COPY_THRESHOLD (GC_THRESHOLD>>3)
126
132 #define REAL double
133
140 #define WL_MAXINT 9007199254740991.0
141
147 #define PRETTY_SIZE 20000L
148
154 #define MAX_BUILT_INS 300L
155
162 #define STRLEN 10000L
163
169 #define PAGE_WIDTH 80L
170
176 #define PRINT_DEPTH 1000000000L
177
183 #define PRINT_SPLIT 1000000000L
184
190 #define PRINT_POWER 9L
191
198 #define PARSER_STACK_SIZE 10000L
199
205 #define MAX_PRECEDENCE 1200L
206
211 #define PRINT_BUFFER 100000L
212
218 #define PROMPT "> "
219
225 #define PROMPT_BUFFER 200L
226
232 #define MAX_LEVEL ((PROMPT_BUFFER-4-strlen(PROMPT))/2)
233
240 #define XEVENTDELAY 1000L
241
247 #define MAX_TRACE_INDENT 40L
248
254 #define QUOTED_TRUE 1L
255
261 #define UNFOLDED_TRUE 2L
262
268 #define TRUE 1L
269
275 #define FALSE 0L
276
282 #define TRUEMASK 1L
283
288 #define UNDEF 2L
289
294 #define NOT_CODED 0L
295
302 #define DEFRULES -1L
303
309 #define EOLN 10L
310
317 #define INT_SIZE 8*sizeof(unsigned long)
318
324 #define HEAP TRUE
325
331 #define STACK FALSE
332
338 #define FACT 100L
339
345 #define QUERY 200L
346
352 #define ERROR 999L
353
359 #define RMASK 256L
360
367 #define SMASK 255L
368
374 #ifdef TS
375 #define INIT_TIME_STAMP 1L
376 #endif
377
383 #define psi_term_ptr 0
384
390 #define resid_ptr 1
391
397 #define int_ptr 2
398
404 #define def_ptr 3
405
411 #define code_ptr 4
412
418 #define goal_ptr 5
419
425 #define cut_ptr 6
426
427 #ifdef CLIFE
428
434 #define block_ptr 12
435
441 #define value_ptr 13
442 #endif /* CLIFE */
443
449 #define destroy_window 7+32
450
456 #define show_window 8+32
457
463 #define hide_window 9+32
464
470 #define show_subwindow 10+32
471
477 #define hide_subwindow 11+32
478
484 #define undo_action 32
485
486 // from lefun.h
487
493 #define set_empty 0
494
500 #define set_1 1
501
507 #define set_2 2
508
514 #define set_1_2 3
515
521 #define set_1_2_3 7
522
528 #define set_1_2_3_4 15
529
530 // from list.h
531
532 #ifndef NULL
533 #define NULL 0
534 #endif
535
536 // from sys.h
537
584 #define OPTIONAL 0
585
631 #define REQUIRED 1
632
678 #define UNEVALED (1<<1)
679
725 #define JUSTFAIL (1<<2)
726
772 #define POLYTYPE (1<<3)
773
818 #define MANDATORY (1<<4)
819
865 #define NOVALUE (1<<5)
866
867 // from token.h
868
869 /* Names of the features */
870
876 #define STREAM "stream"
877
883 #define INPUT_FILE_NAME "input_file_name"
884
890 #define LINE_COUNT "line_count"
891
897 #define START_OF_LINE "start_of_line"
898
904 #define SAVED_CHAR "saved_char"
905
911 #define OLD_SAVED_CHAR "old_saved_char"
912
918 #define SAVED_PSI_TERM "saved_psi_term"
919
925 #define OLD_SAVED_PSI_TERM "old_saved_psi_term"
926
932 #define EOF_FLAG "eof_flag"
933
939 #define CURRENT_MODULE "current_module"
940
941 // from xdisplaylist.h
942
943 #define xDefaultFont -1
944 #define xDefaultLineWidth -1
945
946 // from templates.h
947
948 /* constants */
949
955 #define MAXNBARGS 20
956
963 #define STRCMP 1L
964
971 #define INTCMP 2L
972
979 #define FEATCMP 3L
980
986 #define nop 0
987
993 #define xf 1
994
1000 #define fx 2
1001
1007 #define yf 3
1008
1014 #define fy 4
1015
1021 #define xfx 5
1022
1023 /* yfy, */
1024
1030 #define xfy 6
1031
1037 #define yfx 7
1038
1044 #define fail 0L
1045
1051 #define prove 1L
1052
1058 #define unify 2L
1059
1065 #define unify_noeval 3L
1066
1072 #define disj 4L
1073
1079 #define what_next 5L
1080
1086 #define eval 6L
1087
1093 #define eval_cut 7L
1094
1100 #define freeze_cut 8L
1101
1107 #define implies_cut 9L
1108
1114 #define general_cut 10L
1115
1121 #define match 11L
1122
1128 #define type_disj 12L
1129
1135 #define clause 13L
1136
1142 #define del_clause 14L
1143
1149 #define retract 15L
1150
1156 #define load 16L
1157
1163 #define c_what_next 17L
1164 /* RM: Mar 31 1993 */
1165
1166 // from bi_math.c
1167
1173 #define SINFLAG 1
1174
1180 #define COSFLAG 2
1181
1187 #define TANFLAG 3
1188
1189 // from bi_type.c
1190
1196 #define isa_le_sel 0
1197
1203 #define isa_lt_sel 1
1204
1210 #define isa_ge_sel 2
1211
1217 #define isa_gt_sel 3
1218
1224 #define isa_eq_sel 4
1225
1231 #define isa_nle_sel 5
1232
1238 #define isa_nlt_sel 6
1239
1245 #define isa_nge_sel 7
1246
1252 #define isa_ngt_sel 8
1253
1259 #define isa_neq_sel 9
1260
1266 #define isa_cmp_sel 10
1267
1273 #define isa_ncmp_sel 11
1274
1275 // from copy.c
1276
1277
1284 #define HASHSIZE 2048L
1285
1292 #define NUMBUCKETS 1024L
1293
1299 #define HASHEND (-1)
1300
1306 #define EXACT_FLAG 0
1307
1313 #define QUOTE_FLAG 1
1314
1320 #define EVAL_FLAG 2
1321
1328 #define QUOTE_STUB 3
1329
1330 // from parser.c
1331
1337 #define NOP 2000
1338
1339 // from print.c
1340
1346 #define DOTDOT ": " /* RM: Dec 14 1992, should be " : " */
1347
1353 #define NOTOP 0
1354
1360 #define INFIX 1
1361
1367 #define PREFIX 2
1368
1374 #define POSTFIX 3
1375
1376 #ifndef NORAW
1377 #define stdin_fileno fileno (stdin)
1378 #endif
1379
1380 // from sys.c
1381
1387 #define ARGNN 10
1388
1394 #define undef_it 1
1395
1401 #define predicate_it 2
1402
1408 #define function_it 3
1409
1415 #define type_it 4
1416
1422 #define global_it 5
1423 /* RM: Feb 8 1993 */
1424 #ifdef CLIFE
1425
1431 #define block_it 6
1432 /* AA: Mar 8 1993 */
1433 #endif
1434 /* CLIFE */
1435
1436 #ifdef X11
1437
1443 #define xDefaultFont -1
1444
1450 #define xDefaultLineWidth -1
1451
1457 #define DRAW_LINE 1
1458
1464 #define DRAW_RECTANGLE 2
1465
1471 #define DRAW_ARC 3
1472
1478 #define DRAW_POLYGON 4
1479
1485 #define FILL_RECTANGLE 5
1486
1492 #define FILL_ARC 6
1493
1499 #define FILL_POLYGON 7
1500
1506 #define DRAW_STRING 8
1507
1513 #define DRAW_IMAGE_STRING 9
1514
1515 #endif