Wild Life  2.30
 All Data Structures Files Functions Variables Typedefs Macros
def_glob.h
Go to the documentation of this file.
1 
6 // from extern.h
7 
14 
20 int arg_c;
21 
27 char *arg_v[ARGNN]; // Modified DJD
28 
35 
42 
49 
56 
63 
70 
77 
83 struct tms life_start;
84 
90 struct tms life_end;
91 
99 
105 
112 
119 
120 
127 
134 
135 /* The following variables are used to make built-in type comparisons */
136 /* as fast as possible. They are defined in built_ins.c. */
137 
143 ptr_definition add_module1; /* RM: Mar 12 1993 */
144 
151 
158 
164 long parser_stack_index; /* 26.1 */
165 
172 
179 
186 
193 
200 
207 
214 
221 
228 /* extern ptr_definition conjunction; 19.8 */
229 
236 
243 
250 
256 ptr_definition disj_nil; /* RM: Feb 16 1993 */
257 
264 
271 
277 ptr_definition leftarrowsym; /* PVR 15.9.93 */
278 
285 
292 
299 
306 
313 
320 
326 ptr_definition life_or; /* RM: Apr 6 1993 */
327 
333 ptr_definition minus_symbol;/* RM: Jun 21 1993 */
334 
340 ptr_definition nil; /*** RM 9 Dec 1992 ***/
341 
348 
355 
362 
369 
376 
383 
390 
397 
404 
411 
418 
425 
432 
439 
446 
453 
460 
467 
474 
481 
488 
495 
502 
509 
516 
523 
530 
537 
544 
551 
558 
565 
572 
579 
586 
593 
600 
601 /* RM: Jul 7 1993 */
602 
609 
616 
623 
630 
637 
644 
651 
657 
663 ptr_psi_term old_state; /* RM: Feb 17 1993 */
664 
665 // from interrupt.h
666 
673 
674 // from login.h
675 
676 long stepflag;
679 
680 // from modules.h
681 
688 
695 
702 
709 
716 
723 
730 
736 
742 
749 
757 
758 // from parser.h
759 
765 long parse_ok;
766 
767 // from print.h
768 
774 char *no_name;
775 
781 char *buffer;
782 
788 
793 long indent;
794 
800 
806 
812 
818 
824 
825 // from token.h
826 
833 
840 /* Part of global input file state */
841 
847 
848 
853 long eof_flag;
854 
855 /* File state ADT */
858 /* For parsing from a string */
861 
862 // from types.h
863 
864 // from lefun.h
868 long curried;
870 
871 // from templates.h
872 
873 char *numbers[21];
875 
876 // from lib.c
877 jmp_buf env;
879 
880 // from lub.c
881 
882 // from arity.c
883 FILE *features;
884 
885 // from built_ins.c
886 FILE *bi_list;
887 
888 long (* c_rule[MAX_BUILT_INS])();
889 
890 
891 char *one;
892 char *two;
893 char *three;
894 char *year_attr;
896 char *day_attr;
897 char *hour_attr;
901 
902 // from copy.c
903 /* TRUE means: heap_flag==TRUE & only copy to heap those objects not */
904 /* already on heap, i.e. incremental copy to heap. */
905 long to_heap;
906 
907 
908 // from error.c
910 
912 long quietflag; /* 21.1 */
913 long trace;
914 long verbose; /* 21.1 */
917 
918 // from hash_table.c
919 
920 long rand_array[256];
921 
922 // from lefun.c
923 /* ptr_goal resid_limit; 12.6 */
924 
925 /* ptr_psi_term match_date; 13.6 */
926 /* ptr_choice_point cut_point; 13.6 */
927 
928 // from lib.c
929 
931 
932 // from login.c
933 /* Statistics on trail cleaning */
936 
937 /* ptr_choice_point prompt_choice_stack; 12.7 */
938 
939 struct tms start_time,end_time;
940 
942 long xcount;
943 
944 long more_u_attr; /* TRUE if U has attributes V doesn't */
945 long more_v_attr; /* Vice-versa */
946 
947 long u_func,v_func; /* TRUE if U or V is a curried function */
948 long new_stat;
949 
951 
952 // from modules.c
953 string module_buffer; /* Temporary storage place for strings */
954 
955 extern long cmp_debug_flag;
956 
957 // from parser.c
960 operator op_stack[PARSER_STACK_SIZE];
961 
963 
964 // from print.c
965 
966 char *name;
968 
971 
972 /* The output stream for a given print command is put in here */
973 /* This will be set to stdout, to stderr, or to output_stream */
974 FILE *outfile;
975 
976 // from sys.c
977 
983 ptr_definition sys_bytedata; /* DENYS: BYTEDATA */
984 
985 // from token.c
987 
988 /* For parsing from a string */
989 /****************************************************************************/
990 
991 /* Abstract Data Type for the Input File State */
992 
993 /* FILE *last_eof_read; */
994 
995 /* Global input file state information */
996 /* Note: all characters should be stored in longs. This ensures
997  that noncharacters (i.e., EOF) can also be stored. */
998 /* For parsing from a string */
999 
1000 // from types.h
1002 
1003 long parser_stack_index;
1004 
1010 
1011 long noisy;
1013 
1018 char *prompt;
1020 
1028 #ifdef TS
1029 unsigned long global_time_stamp; /* 9.6 */
1030 #endif
1031 
1035 
1036 // from xpred.h
1038 
1043  xenter_event,xleave_event, xmisc_event, /* RM: 3rd May 93 */
1044  xgc, xdisplaylist;
1045 
1047 
GENERIC stack_pointer
used to allocate from stack - size allocated added - adj for alignment
Definition: def_glob.h:69
struct tms life_end
Definition: def_glob.h:90
long indent
Global flag that modifies how writing is done.
Definition: def_glob.h:793
ptr_definition disjunction
symbol in bi module
Definition: def_glob.h:249
ptr_definition sys_stream
symbol in sys module
Definition: def_glob.h:585
ptr_node printed_pointers
Definition: def_glob.h:1007
ptr_definition alist
symbol in bi module
Definition: def_glob.h:319
long write_corefs
Global flag that modifies how writing is done.
Definition: def_glob.h:811
float garbage_time
total time on garbage collections - seconds
Definition: def_glob.h:76
ptr_definition succeed
symbol in bi module
Definition: def_glob.h:389
ptr_goal resid_limit
Definition: def_glob.h:867
long assert_first
Definition: def_glob.h:1032
ptr_definition xf_sym
symbol in bi module
Definition: def_glob.h:515
GENERIC heap_pointer
used to allocate from heap - size allocated subtracted - adj for alignment
Definition: def_glob.h:55
ptr_psi_term stdin_state
Definition: def_glob.h:857
ptr_definition apply
symbol in bi module
Definition: def_glob.h:178
#define PARSER_STACK_SIZE
Maximum depth of the parser stack.
Definition: def_const.h:198
ptr_definition lf_false
symbol in bi module
Definition: def_glob.h:284
ptr_definition nothing
symbol in bi module
Definition: def_glob.h:347
ptr_definition integer
symbol in bi module
Definition: def_glob.h:312
ptr_definition eqsym
symbol in syntax module
Definition: def_glob.h:270
ptr_definition functor
symbol in bi module
Definition: def_glob.h:298
long main_loop_ok
Definition: def_glob.h:1023
long clean_iter
Definition: def_glob.h:934
ptr_definition quote
symbol in syntax module
Definition: def_glob.h:361
ptr_module user_module
Default module for user input.
Definition: def_glob.h:694
ptr_definition final_question
symbol in syntax module
Definition: def_glob.h:615
ptr_goal goal_stack
Definition: def_glob.h:1025
GENERIC mem_limit
starting point of heap - mem_base aligned
Definition: def_glob.h:62
long type_count
Definition: def_glob.h:1021
ptr_definition xdisplaylist
Definition: def_glob.h:1040
long eof_flag
Definition: def_glob.h:853
char prompt_buffer[PROMPT_BUFFER]
Definition: def_glob.h:878
ptr_definition first_definition
All definition are stores in a linked list starting at first_definition.
Definition: def_glob.h:13
long new_stat
Definition: def_glob.h:948
ptr_psi_term xevent_list
Definition: def_glob.h:1037
long psi_term_line_number
Definition: def_glob.h:909
int alloc_words
number of words to allocate - from either command lind or ALLOC_WORDS define
Definition: def_glob.h:34
ptr_definition xbutton_event
Definition: def_glob.h:1040
string input_file_name
Definition: def_glob.h:1016
ptr_definition calloncesym
symbol in bi module
Definition: def_glob.h:206
ptr_module current_module
The current module for the tokenizer.
Definition: def_glob.h:729
ptr_definition delay_checksym
symbol in bi module
Definition: def_glob.h:487
ptr_definition cut
symbol in syntax module
Definition: def_glob.h:242
long verbose
Definition: def_glob.h:914
char * two
Definition: def_glob.h:892
ptr_definition iff
symbol in bi module
Definition: def_glob.h:305
long(* c_rule[MAX_BUILT_INS])()
Definition: def_glob.h:888
long display_modules
whether to display modules with symbols
Definition: def_glob.h:741
ptr_definition timesym
symbol in bi module
Definition: def_glob.h:417
ptr_module syntax_module
Module for minimal Prolog syntax.
Definition: def_glob.h:715
ptr_definition sys_regexp
symbol in sys module
Definition: def_glob.h:578
ptr_definition sys_process_continued
symbol in sys module
Definition: def_glob.h:650
ptr_definition comment
symbol in bi module
Definition: def_glob.h:227
long more_u_attr
Definition: def_glob.h:944
long trace_input
whether to echo characters read
Definition: def_glob.h:756
long write_resids
Global flag that modifies how writing is done.
Definition: def_glob.h:817
ptr_definition listingsym
symbol in bi module
Definition: def_glob.h:480
long print_depth
Global flag that modifies how writing is done.
Definition: def_glob.h:787
long file_date
Definition: def_glob.h:1034
ptr_definition sys_bitvector
symbol in sys module
Definition: def_glob.h:571
ptr_definition fx_sym
symbol in bi module
Definition: def_glob.h:522
long no_var_tree
Definition: def_glob.h:962
ptr_definition stream
symbol in bi module
Definition: def_glob.h:382
ptr_definition xexpose_event
Definition: def_glob.h:1040
FILE * bi_list
Definition: def_glob.h:886
ptr_definition call_handlersym
symbol in bi module
Definition: def_glob.h:508
ptr_definition sys_file_stream
symbol in sys module
Definition: def_glob.h:592
ptr_definition dynamicsym
symbol in bi module
Definition: def_glob.h:459
long old_saved_char
Definition: def_glob.h:850
ptr_definition opsym
symbol in bi module
Definition: def_glob.h:445
long quietflag
Definition: def_glob.h:912
ptr_node var_tree
Definition: def_glob.h:1005
ptr_definition add_module3
symbol in bi module for feature_values
Definition: def_glob.h:157
long warningflag
Definition: def_glob.h:911
ptr_psi_term input_state
Definition: def_glob.h:856
long steptrace
Definition: def_glob.h:915
ptr_definition add_module2
symbol in bi module for str2psi
Definition: def_glob.h:150
long ignore_eff
Definition: def_glob.h:677
long page_width
Definition: def_glob.h:1019
long parse_ok
indicates whether there was a syntax error
Definition: def_glob.h:765
char * three
Definition: def_glob.h:893
long saved_char
Definition: def_glob.h:849
long cmp_debug_flag
ptr_definition funcsym
symbol in syntax module
Definition: def_glob.h:291
ptr_definition xgc
Definition: def_glob.h:1040
string module_buffer
Definition: def_glob.h:953
ptr_goal resid_aim
Definition: def_glob.h:865
ptr_definition boolean
symbol in bi module
Definition: def_glob.h:185
ptr_definition eval_argsym
symbol in bi module
Definition: def_glob.h:494
long x_window_creation
Definition: def_glob.h:1046
long noisy
Definition: def_glob.h:1011
FILE * outfile
Definition: def_glob.h:974
GENERIC other_limit
only used for the half-space garbage collector
Definition: def_glob.h:104
ptr_definition xmotion_event
Definition: def_glob.h:1040
long types_modified
Definition: def_glob.h:1022
ptr_definition and
symbol in syntax module
Definition: def_glob.h:171
ptr_resid_list resid_vars
Definition: def_glob.h:866
long assert_ok
Definition: def_glob.h:1033
ptr_definition xmisc_event
Definition: def_glob.h:1040
ptr_node pointer_names
Definition: def_glob.h:1008
ptr_psi_term null_psi_term
Used to represent an empty parse token.
Definition: def_glob.h:656
GENERIC other_pointer
NOT USED - according to comment.
Definition: def_glob.h:111
ptr_definition built_in
symbol in bi module
Definition: def_glob.h:199
ptr_definition sys_bytedata
symbol in sys module
Definition: def_glob.h:983
long trace
Definition: def_glob.h:913
ptr_definition sys_process_no_children
symbol in sys module
Definition: def_glob.h:622
ptr_psi_term old_state
used in token.c to save state to restore it later
Definition: def_glob.h:663
long stepcount
Definition: def_glob.h:916
ptr_definition real
symbol in bi module
Definition: def_glob.h:375
ptr_definition inputfilesym
symbol in bi module
Definition: def_glob.h:501
long line_count
Definition: def_glob.h:1015
ptr_definition yf_sym
symbol in bi module
Definition: def_glob.h:529
struct tms life_start
time life started - seconds
Definition: def_glob.h:83
ptr_stack undo_stack
Definition: def_glob.h:1027
unsigned long * GENERIC
unsigned long *GENERIC
Definition: def_struct.h:35
char * buffer
buffer used only in print.c - there is local with same name in xpred.c
Definition: def_glob.h:781
ptr_definition variable
symbol in bi module
Definition: def_glob.h:438
long goal_count
Definition: def_glob.h:678
ptr_definition final_dot
symbol in syntax module
Definition: def_glob.h:608
ptr_definition colonsym
symbol in syntax module
Definition: def_glob.h:213
ptr_definition xkeyboard_event
Definition: def_glob.h:1040
int arg_c
set from argc in either life.c or lib.c
Definition: def_glob.h:20
ptr_definition xwindow
Definition: def_glob.h:1040
char * name
Definition: def_glob.h:966
ptr_definition minus_symbol
symbol in syntax module
Definition: def_glob.h:333
ptr_item indx
Definition: def_glob.h:970
long v_func
Definition: def_glob.h:947
#define PRINT_POWER
Power of ten to split printing (REALs are often more precise than ints.
Definition: def_const.h:190
ptr_definition * gamma_table
Definition: def_glob.h:950
ptr_definition eof
symbol in syntax module
Definition: def_glob.h:263
GENERIC other_base
mem_size memory allocated in init_memory by malloc
Definition: def_glob.h:98
long to_heap
Definition: def_glob.h:905
ptr_definition constant
symbol in bi module
Definition: def_glob.h:235
long u_func
Definition: def_glob.h:947
ptr_definition abortsym
symbol in bi module
Definition: def_glob.h:126
ptr_definition add_module1
symbol in bi module for features
Definition: def_glob.h:143
char seg_format[PRINT_POWER+4]
Definition: def_glob.h:967
ptr_definition staticsym
symbol in bi module
Definition: def_glob.h:466
char * no_name
the string "pointer"
Definition: def_glob.h:774
ptr_definition such_that
symbol in syntax module
Definition: def_glob.h:396
ptr_definition typesym
symbol in syntax module
Definition: def_glob.h:431
ptr_definition nil
symbol in bi module
Definition: def_glob.h:340
FILE * input_stream
Definition: def_glob.h:1014
ptr_definition xfy_sym
symbol in bi module
Definition: def_glob.h:550
long stepflag
Definition: def_glob.h:676
long start_of_line
???
Definition: def_glob.h:846
ptr_goal aim
Definition: def_glob.h:1024
long set_extra_args[6]
Definition: def_glob.h:874
ptr_definition disj_nil
symbol in syntax module
Definition: def_glob.h:256
char * weekday_attr
Definition: def_glob.h:900
item pretty_things[PRETTY_SIZE]
Definition: def_glob.h:969
ptr_definition xpixmap
Definition: def_glob.h:1040
char * one
Definition: def_glob.h:891
ptr_definition xenter_event
Definition: def_glob.h:1040
ptr_definition xevent
Definition: def_glob.h:1040
ptr_definition commasym
symbol in syntax module
Definition: def_glob.h:220
long xeventdelay
Definition: def_glob.h:941
char * arg_v[ARGNN]
set from argv in either life.c or lib.c
Definition: def_glob.h:27
char * numbers[21]
Definition: def_glob.h:873
long const_quote
Global flag that modifies how writing is done.
Definition: def_glob.h:799
ptr_module bi_module
Module for public built-ins.
Definition: def_glob.h:687
ptr_psi_term saved_psi_term
Definition: def_glob.h:851
long can_curry
Definition: def_glob.h:869
long rand_array[256]
Definition: def_glob.h:920
ptr_module sys_module
Definition: def_glob.h:735
ptr_psi_term error_psi_term
symbol in bi module
Definition: def_glob.h:118
#define PRETTY_SIZE
Maximum number of syntactic tokens in a pretty-printed output term.
Definition: def_const.h:147
ptr_definition top
symbol in syntax module
Definition: def_glob.h:403
#define PROMPT_BUFFER
Size of prompt buffer.
Definition: def_const.h:225
jmp_buf env
Definition: def_glob.h:877
ptr_definition yfx_sym
symbol in bi module
Definition: def_glob.h:557
long stdin_terminal
set in init_io in lib.c to true - never changed - used in token.c
Definition: def_glob.h:832
long gen_sym_counter
Definition: def_glob.h:1009
long curried
Definition: def_glob.h:868
long display_persistent
if true print persistent values preceded by "$"
Definition: def_glob.h:748
ptr_definition xdisplay
Definition: def_glob.h:1040
ptr_definition sys_process_signaled
symbol in sys module
Definition: def_glob.h:636
long types_done
Definition: def_glob.h:1012
FILE * features
Definition: def_glob.h:883
char * prompt
Definition: def_glob.h:1018
ptr_node module_table
The table of modules.
Definition: def_glob.h:722
ptr_definition loadsym
symbol in bi module
Definition: def_glob.h:452
long c_query_level
Definition: def_glob.h:930
char * minute_attr
Definition: def_glob.h:898
ptr_definition leftarrowsym
symbol in syntax module
Definition: def_glob.h:277
ptr_definition nullsym
symbol in bi module
Definition: def_glob.h:564
struct tms start_time end_time
Definition: def_glob.h:939
unsigned long global_time_stamp
Definition: login.c:28
long write_stderr
Global flag that modifies how writing is done.
Definition: def_glob.h:805
ptr_definition xdestroy_event
Definition: def_glob.h:1040
ptr_module no_module
???
Definition: def_glob.h:701
FILE * output_stream
Definition: def_glob.h:1017
#define MAX_BUILT_INS
Maximum number of built_ins.
Definition: def_const.h:154
GENERIC mem_base
mem_size memory allocated in init_memory by malloc
Definition: def_glob.h:48
char * year_attr
Definition: def_glob.h:894
long parser_stack_index
index to parser stack
Definition: def_glob.h:164
long stringparse
Definition: def_glob.h:859
ptr_definition encodesym
symbol in bi module
Definition: def_glob.h:473
ptr_definition fy_sym
symbol in bi module
Definition: def_glob.h:536
int mem_size
number of words from memory = alloc_words * sizeof word
Definition: def_glob.h:41
char * second_attr
Definition: def_glob.h:899
ptr_definition xleave_event
Definition: def_glob.h:1040
char * day_attr
Definition: def_glob.h:896
ptr_definition sys_socket_stream
symbol in sys module
Definition: def_glob.h:599
long interrupted
used in handling user using ctrl-c
Definition: def_glob.h:672
char * stringinput
Definition: def_glob.h:860
ptr_int_list children
Definition: def_glob.h:1001
ptr_int_list adults
Definition: def_glob.h:1001
ptr_definition lf_true
symbol in bi module
Definition: def_glob.h:410
ptr_definition sys_process_exited
symbol in sys module
Definition: def_glob.h:629
char * hour_attr
Definition: def_glob.h:897
ptr_definition aborthooksym
symbol in bi module
Definition: def_glob.h:133
ptr_definition xconfigure_event
Definition: def_glob.h:1040
long clean_succ
Definition: def_glob.h:935
ptr_psi_term xevent_existing
Definition: def_glob.h:1037
long xcount
Definition: def_glob.h:942
ptr_definition boolpredsym
symbol in bi module
Definition: def_glob.h:192
ptr_definition xfx_sym
symbol in bi module
Definition: def_glob.h:543
ptr_node symbol_table
Definition: def_glob.h:986
long var_occurred
???
Definition: def_glob.h:839
ptr_module x_module
'ifdef X11' unnecessary
Definition: def_glob.h:708
long write_canon
Global flag that modifies how writing is done.
Definition: def_glob.h:823
#define ARGNN
primitive in sys.c does not allow more than ARGNN (10) arguments
Definition: def_const.h:1387
ptr_definition quoted_string
symbol in bi module
Definition: def_glob.h:368
ptr_choice_point choice_stack
Definition: def_glob.h:1026
ptr_psi_term old_saved_psi_term
Definition: def_glob.h:852
long int_stack[PARSER_STACK_SIZE]
Definition: def_glob.h:959
ptr_definition predsym
symbol in syntax module
Definition: def_glob.h:354
char * month_attr
Definition: def_glob.h:895
psi_term psi_term_stack[PARSER_STACK_SIZE]
Definition: def_glob.h:958
ptr_definition sys_process_stopped
symbol in sys module
Definition: def_glob.h:643
ptr_definition xdrawable
Definition: def_glob.h:1040
long more_v_attr
Definition: def_glob.h:945
ptr_definition tracesym
symbol in bi module
Definition: def_glob.h:424
ptr_node printed_vars
Definition: def_glob.h:1006
ptr_definition life_or
symbol in syntax module
Definition: def_glob.h:326