=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/ox_texmacs.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -p -r1.21 -r1.22 --- OpenXM/src/kxx/ox_texmacs.c 2005/06/16 05:07:24 1.21 +++ 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.20 2004/09/17 02:42:58 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 @@ -52,6 +53,11 @@ 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; @@ -73,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. @@ -105,22 +113,31 @@ main(int argc,char *argv[]) { /* Set consts */ Quiet = 1; for (i=1; i