[BACK]Return to oxweave.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kxx

Diff for /OpenXM/src/kxx/Attic/oxweave.c between version 1.5 and 1.6

version 1.5, 1999/12/14 06:41:03 version 1.6, 1999/12/15 03:30:14
Line 14 
Line 14 
 \maketitle  \maketitle
 \section{$BA0=q$-(B}  \section{$BA0=q$-(B}
 */  */
 /* $OpenXM: OpenXM/src/kxx/oxweave.c,v 1.4 1999/12/13 14:47:41 takayama Exp $ */  /* $OpenXM: OpenXM/src/kxx/oxweave.c,v 1.5 1999/12/14 06:41:03 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
   
 /* Modify here to change the begin tag and EndComment. Less than 9 characters.  /* Modify here to change the begin tag and EndComment. Less than 9 characters.
Line 27  char *EndComment1="\n";
Line 27  char *EndComment1="\n";
 #define BSIZE 256  #define BSIZE 256
 #define VSIZE 256  #define VSIZE 256
 static int Debug = 0;  static int Debug = 0;
   static int Debug2 = 0;
 static int Plain = 0;  static int Plain = 0;
 /*&jp \noindent  /*&jp \noindent
   $B:F5"(B option $B$r(B on $B$K$7$?>l9g(B ({\tt Recursive = 1},    $B:F5"(B option $B$r(B on $B$K$7$?>l9g(B ({\tt Recursive = 1},
Line 86  main(int argc,char *argv[]) {
Line 87  main(int argc,char *argv[]) {
         Plain = 1; OutputNoTaggedSegment = 1;          Plain = 1; OutputNoTaggedSegment = 1;
       }else if (strcmp(argv[i],"--recursive") == 0) {        }else if (strcmp(argv[i],"--recursive") == 0) {
         Recursive = 1;          Recursive = 1;
         }else if (strcmp(argv[i],"--debug") == 0) {
           Debug2 = 1;
       } else{        } else{
         if (strcmp(argv[i]," ") == 0) {          if (strcmp(argv[i]," ") == 0) {
           argv[i] = "";            argv[i] = "";
Line 252  findEndTag(int tagc,char *tagv[],int rule) {
Line 255  findEndTag(int tagc,char *tagv[],int rule) {
     i = rule;      i = rule;
     if (wcmp(tagv[i]) == 0) {      if (wcmp(tagv[i]) == 0) {
       LevelState1--;        LevelState1--;
       /* printf("LevelState1=%d\n",LevelState1);*/        if (Debug2) printf("[LevelState1=%d by end of comment in the state 1.]\n",LevelState1);
       if (LevelState1 > 0 && Recursive) {        if (LevelState1 > 0 && Recursive) {
         wgetc(strlen(tagv[i]));          wgetc(strlen(tagv[i]));
         printf("%s",tagv[i]);          printf("%s",tagv[i]);
Line 271  findEndTag(int tagc,char *tagv[],int rule) {
Line 274  findEndTag(int tagc,char *tagv[],int rule) {
     /* Our state is 1. */      /* Our state is 1. */
     if (wcmp("/*") >= 0 ) {      if (wcmp("/*") >= 0 ) {
       LevelState1++;        LevelState1++;
       /* printf("LevelState1++=%d\n",LevelState1); */        if (Debug2) printf("[LevelState1++=%d by / * in state 1.]\n",LevelState1);
     }      }
     c = wgetc(1);      c = wgetc(1);
     putchar(c);      putchar(c);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>