=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/ox_texmacs.c,v retrieving revision 1.19 retrieving revision 1.22 diff -u -p -r1.19 -r1.22 --- OpenXM/src/kxx/ox_texmacs.c 2004/09/05 00:51:18 1.19 +++ OpenXM/src/kxx/ox_texmacs.c 2006/01/19 12:24:15 1.22 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kxx/ox_texmacs.c,v 1.18 2004/03/25 01:37:14 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kxx/ox_texmacs.c,v 1.21 2005/06/16 05:07:24 takayama Exp $ */ #include #include @@ -36,9 +36,10 @@ #endif /* -#define END_OF_INPUT '#' +#define TEXMACS_END_OF_INPUT '#' */ -#define END_OF_INPUT '\n' +#define TEXMACS_END_OF_INPUT '\n' +#define CFEP_END_OF_INPUT 0x5 /* Table for the engine type. */ #define ASIR 1 @@ -48,9 +49,15 @@ extern int Quiet; extern JMP_BUF EnvOfStackMachine; extern int Calling_ctrlC_hook; +extern int RestrictedMode, RestrictedMode_saved; int Format=1; /* 1 : latex mode */ int OutputLimit_for_TeXmacs = (1024*10); +/* Type of View part (user interface engine) */ +#define V_TEXMACS 1 +#define V_CFEP 2 +int View = V_TEXMACS ; + int TM_Engine = ASIR ; int TM_asirStarted = 0; int TM_sm1Started = 0; @@ -72,6 +79,8 @@ static void printps(char *s); static void printCopyright(char *s); static int startEngine(int type,char *msg); static int isPS(char *s); +static int end_of_input(int c); +static void setDefaultParameterForCfep(); /* tail -f /tmp/debug-texmacs.txt Debug output to understand the timing problem of pipe interface. @@ -82,7 +91,7 @@ main(int argc,char *argv[]) { char *s; char *r; char *sys; - struct object ob; + struct object ob = OINIT; int irt=0; int vmode=1; char *openxm_home; @@ -104,22 +113,31 @@ main(int argc,char *argv[]) { /* Set consts */ Quiet = 1; for (i=1; i