Subversion Repositories wimsdev

Rev

Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8185 Rev 11124
Line 79... Line 79...
79
         memmove(buf,p2,p3-p2); buf[p3-p2]=0;
79
         memmove(buf,p2,p3-p2); buf[p3-p2]=0;
80
         for(i=0;i<opalphano && strcmp(buf,opalpha[i].name)!=0; i++);
80
         for(i=0;i<opalphano && strcmp(buf,opalpha[i].name)!=0; i++);
81
         if(i<opalphano) {
81
         if(i<opalphano) {
82
          l=opalpha[i].lvl; if(l>expl2) {
82
          l=opalpha[i].lvl; if(l>expl2) {
83
              if(got) extrout(p1,p2,dist+p1-p,commas,&commacnt);
83
              if(got) extrout(p1,p2,dist+p1-p,commas,&commacnt);
84
              if(expl1>0) got=0; p1=find_word_start(p3);
84
              if(expl1>0) got=0;
-
 
85
              p1=find_word_start(p3);
85
          }
86
          }
86
          if(l>=expl1 && l<=expl2) {
87
          if(l>=expl1 && l<=expl2) {
87
              got=1;
88
              got=1;
88
              if(l>0 && commacnt<MAX_COMMAS-2) {
89
              if(l>0 && commacnt<MAX_COMMAS-2) {
89
               commas[commacnt++]=p2-p1;
90
               commas[commacnt++]=p2-p1;
Line 107... Line 108...
107
     for(i=0;i<oppunctno && strncmp(p2,oppunct[i].name,strlen(oppunct[i].name))!=0; i++);
108
     for(i=0;i<oppunctno && strncmp(p2,oppunct[i].name,strlen(oppunct[i].name))!=0; i++);
108
     if(i>=oppunctno) error("Unknown operator.");
109
     if(i>=oppunctno) error("Unknown operator.");
109
     p3=p2+strlen(oppunct[i].name); l=oppunct[i].lvl;
110
     p3=p2+strlen(oppunct[i].name); l=oppunct[i].lvl;
110
     if(l>expl2) {
111
     if(l>expl2) {
111
         if(got) extrout(p1,p2,dist+p1-p,commas,&commacnt);
112
         if(got) extrout(p1,p2,dist+p1-p,commas,&commacnt);
112
         if(expl1>0) got=0; p1=find_word_start(p3);
113
         if(expl1>0) got=0;
-
 
114
         p1=find_word_start(p3);
113
     }
115
     }
114
     if(l>=expl1 && l<=expl2) {
116
     if(l>=expl1 && l<=expl2) {
115
         got=1;
117
         got=1;
116
         if(l>0 && commacnt<MAX_COMMAS-2) {
118
         if(l>0 && commacnt<MAX_COMMAS-2) {
117
          commas[commacnt++]=p2-p1;
119
          commas[commacnt++]=p2-p1;