Rev 7673 | Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7673 | Rev 8155 | ||
---|---|---|---|
Line 181... | Line 181... | ||
181 | char *andor[]={"and","or","not","is","isnot"}; |
181 | char *andor[]={"and","or","not","is","isnot"}; |
182 | #define andorcnt (sizeof(andor)/sizeof(andor[0])) |
182 | #define andorcnt (sizeof(andor)/sizeof(andor[0])) |
183 | char *andorlang[andorcnt], andorlangbuf[1024]; |
183 | char *andorlang[andorcnt], andorlangbuf[1024]; |
184 | int andorlangcnt=-1; |
184 | int andorlangcnt=-1; |
185 | 185 | ||
186 |
|
186 | /* Processing logic statements in math formulas */ |
187 | void _mathlogic(char *p, void _put(char *pp)) |
187 | void _mathlogic(char *p, void _put(char *pp)) |
188 | { |
188 | { |
189 | char *p1, *p2, *ps; |
189 | char *p1, *p2, *ps; |
190 | int i; |
190 | int i; |
191 | if(strstr(p,"qzis")==NULL) { |
191 | if(strstr(p,"qzis")==NULL) { |
Line 231... | Line 231... | ||
231 | } |
231 | } |
232 | } |
232 | } |
233 | ps=find_word_start(ps); if(*ps) _put(ps); |
233 | ps=find_word_start(ps); if(*ps) _put(ps); |
234 | } |
234 | } |
235 | 235 | ||
236 |
|
236 | /* Intelligent insertion of math formulas */ |
237 | void insmath(char *p) |
237 | void insmath(char *p) |
238 | { |
238 | { |
239 | char *pt; |
239 | char *pt; |
240 | if(!outputing) goto end; |
240 | if(!outputing) goto end; |
241 | pt=getvar("insmath_logic"); |
241 | pt=getvar("insmath_logic"); |