Subversion Repositories wimsdev

Rev

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

Rev 8185 Rev 8568
Line 401... Line 401...
401
          memmove(buf,pp,pt-pp); buf[pt-pp]=0;
401
          memmove(buf,pp,pt-pp); buf[pt-pp]=0;
402
          i=term_cnt(buf);
402
          i=term_cnt(buf);
403
          if(i==1) { /* remove parentheses */
403
          if(i==1) { /* remove parentheses */
404
              for(;pp<pt && fcnt<MAX_FACTORS;pp=pe2,fcnt++) {
404
              for(;pp<pt && fcnt<MAX_FACTORS;pp=pe2,fcnt++) {
405
                ss=s; while(*pp=='*' || *pp=='/') {
405
                ss=s; while(*pp=='*' || *pp=='/') {
406
                    if(*pp=='/') ss=-1;
406
                    if(*pp=='/') ss=-s;
407
                    pp++;
407
                    pp++;
408
                }
408
                }
409
                factors[fcnt].side=ss;
409
                factors[fcnt].side=ss;
410
                while(*pp=='+' || *pp=='-') {
410
                while(*pp=='+' || *pp=='-') {
411
                    if(*pp=='-') sign*=-1;
411
                    if(*pp=='-') sign*=-1;