Subversion Repositories wimsdev

Rev

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

Rev 8185 Rev 8283
Line 145... Line 145...
145
         *r1=0; i=compare(p1,numeric,2); if(i<=0) return i;
145
         *r1=0; i=compare(p1,numeric,2); if(i<=0) return i;
146
         else return compare(r2,numeric,1);
146
         else return compare(r2,numeric,1);
147
     }
147
     }
148
     case 3: { /* atomic comparison */
148
     case 3: { /* atomic comparison */
149
         if(r<100) { /* textual comparison */
149
         if(r<100) { /* textual comparison */
150
          char buf1[MAX_LINELEN+1], buf2[MAX_LINELEN+1];
150
          static char buf1[MAX_LINELEN+1], buf2[MAX_LINELEN+1];
151
          while(r1>p1 && myisspace(r1[-1])) r1--;
151
          while(r1>p1 && myisspace(r1[-1])) r1--;
152
          memmove(buf1,p1,r1-p1); buf1[r1-p1]=0;
152
          memmove(buf1,p1,r1-p1); buf1[r1-p1]=0;
153
          r2=find_word_start(r2);
153
          r2=find_word_start(r2);
154
          while(p2>=r2 && myisspace(*p2)) p2--;
154
          while(p2>=r2 && myisspace(*p2)) p2--;
155
          memmove(buf2,r2,p2+1-r2); buf2[p2+1-r2]=0;
155
          memmove(buf2,r2,p2+1-r2); buf2[p2+1-r2]=0;