| 499 | // ----------------------------------------------------------- |
| 500 | |
| 501 | poly2 p2Copy(const poly2 d) |
| 502 | { |
| 503 | poly2 r=NULL; |
| 504 | if ((d!=NULL)&&(d->cf!=NULL)) |
| 505 | { |
| 506 | r=(poly2)omAlloc(sizeof(*r)); |
| 507 | d->cf->ref++; |
| 508 | r->cf=d->cf; |
| 509 | if (d->cf!=NULL) |
| 510 | r->n=p_Copy(d->n,d->cf); |
| 511 | else |
| 512 | r->n=NULL; |
| 513 | } |
| 514 | return r; |
| 515 | } |
| 516 | void p2Delete(poly2 &d) |
| 517 | { |
| 518 | if (d!=NULL) |
no test coverage detected