if possible print p in a short way...
| 182 | |
| 183 | /// if possible print p in a short way... |
| 184 | void p_String0Short(const poly p, ring lmRing, ring tailRing) |
| 185 | { |
| 186 | // NOTE: the following (non-thread-safe!) UGLYNESS |
| 187 | // (changing naRing->ShortOut for a while) is due to Hans! |
| 188 | // Just think of other ring using the VERY SAME naRing and possible |
| 189 | // side-effects... |
| 190 | const BOOLEAN bLMShortOut = rShortOut(lmRing); |
| 191 | const BOOLEAN bTAILShortOut = rShortOut(tailRing); |
| 192 | |
| 193 | lmRing->ShortOut = rCanShortOut(lmRing); |
| 194 | tailRing->ShortOut = rCanShortOut(tailRing); |
| 195 | |
| 196 | p_String0(p, lmRing, tailRing); |
| 197 | |
| 198 | lmRing->ShortOut = bLMShortOut; |
| 199 | tailRing->ShortOut = bTAILShortOut; |
| 200 | } |
| 201 | |
| 202 | /// print p in a long way... |
| 203 | void p_String0Long(const poly p, ring lmRing, ring tailRing) |
no test coverage detected