print p in a long way...
| 201 | |
| 202 | /// print p in a long way... |
| 203 | void p_String0Long(const poly p, ring lmRing, ring tailRing) |
| 204 | { |
| 205 | // NOTE: the following (non-thread-safe!) UGLYNESS |
| 206 | // (changing naRing->ShortOut for a while) is due to Hans! |
| 207 | // Just think of other ring using the VERY SAME naRing and possible |
| 208 | // side-effects... |
| 209 | // but this is not a problem: i/o is not thread-safe anyway. |
| 210 | const BOOLEAN bLMShortOut = rShortOut(lmRing); |
| 211 | const BOOLEAN bTAILShortOut = rShortOut(tailRing); |
| 212 | |
| 213 | lmRing->ShortOut = FALSE; |
| 214 | tailRing->ShortOut = FALSE; |
| 215 | |
| 216 | p_String0(p, lmRing, tailRing); |
| 217 | |
| 218 | lmRing->ShortOut = bLMShortOut; |
| 219 | tailRing->ShortOut = bTAILShortOut; |
| 220 | } |
| 221 | |
| 222 | |
| 223 | void p_String0(poly p, ring lmRing, ring tailRing) |
no test coverage detected