00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _H_xclips
00024 #define _H_xclips
00025
00026 void InitializeInterface(void);
00027 int XclipsQuery(void *,char *);
00028 int XclipsPrint(void *,char *,char *);
00029 int XclipsGetc(void *,char *);
00030 int XclipsUngetc(void *,int,char *);
00031 int XclipsExit(void *,int);
00032 int PrintChangedAgenda(void);
00033 int PrintChangedFacts(void);
00034 int PrintChangedInstances(void);
00035 int PrintChangedGlobals(void);
00036 int PrintChangedFocus(void);
00037 void UpdateMenus(void);
00038 void UpdateOptionsMenu(void);
00039 int set_clips_command(int);
00040 int get_clips_command(void);
00041
00042
00043 #ifndef TRUE
00044 #define TRUE 1
00045 #endif
00046
00047 #ifndef FALSE
00048 #define FALSE 0
00049 #endif
00050
00051 #ifndef EOS
00052 #define EOS '\0'
00053 #endif
00054
00055 #define DELETE '\d'
00056 #define BACKSPACE '\b'
00057 #define NEWLINE '\n'
00058 #define CR '\r'
00059 #define FORMFEED '\f'
00060 #define BLANK ' '
00061 #define TAB '\t'
00062 #define ESC '\033'
00063 #define LOW_PRN_ASCII ' '
00064 #define HIGH_PRN_ASCII '~'
00065 #define LOG_TABLE_SIZE 15
00066 #define MAX_CHAR_IN_BUF 512
00067
00068 #define XFacts 0
00069 #define Rules 1
00070 #define Activations 2
00071 #define Compilations 3
00072
00073 #define RULEMNGR 0
00074 #define DEFFACTSMNGR 1
00075 #define DEFTEMPMNGR 2
00076 #define AGENDAMNGR 3
00077
00078 #define EDIT 0
00079 #define LOADBATCH 1
00080 #define LOADBINARY 2
00081 #define LOADFACTS 3
00082 #define LOADRULES 4
00083 #define DRIBBLEON 5
00084 #define SAVEAS 6
00085 #define SAVEBINARY 7
00086 #define SAVEFACTS 8
00087 #define SAVERULES 9
00088 #define REVERT 10
00089
00090 #define INT_STA_CONSTRAINT_CHK 0
00091 #define INT_DYN_CONSTRAINT_CHK 1
00092 #define INT_RESET_GLOBALS 2
00093 #define INT_SEQUENCE_OPT_REG 3
00094 #define INT_INCREMENTAL_RESET 4
00095 #define INT_AUTO_FLOAT_DIV 5
00096 #define INT_FACT_DUPLICATION 6
00097
00098
00099 #define SALIENCE_FLAG 0
00100 #define STRATEGY_FLAG 1
00101
00102 #define MAX_WATCH 14
00103
00104 #define AGENDA_WIN 0
00105 #define FACT_WIN 1
00106 #define INSTANCE_WIN 2
00107 #define GLOBAL_WIN 3
00108 #define FOCUS_WIN 4
00109 #define WINDOW_NUM 5
00110
00111
00112 #define streq(a, b) (strcmp((a), (b)) == 0)
00113 #define balloc(nm,bk) (bk*)malloc (sizeof(bk)*((unsigned)nm))
00114 #define release(node) free((char *)node)
00115
00116 typedef struct logname
00117 {
00118 char *name;
00119 struct logname *next;
00120 }LogName, *LogNamePtr;
00121 #define salience_width 153
00122 #define salience_height 18
00123
00124 #define strategy_width 153
00125 #define strategy_height 18
00126
00127 #ifndef _XCLIPS_SOURCE_
00128 extern XtActionsRec ClipsTxtActsTable[];
00129 extern Cardinal ClipsTxtActsTableCount;
00130 extern Boolean periodicChecking;
00131 #endif
00132
00133 #endif
00134
00135