| 712 | } |
| 713 | |
| 714 | void * sleftv::CopyD(int t) |
| 715 | { |
| 716 | if (Sy_inset(FLAG_OTHER_RING,flag)) |
| 717 | { |
| 718 | flag&=~Sy_bit(FLAG_OTHER_RING); |
| 719 | WerrorS("object from another ring"); |
| 720 | return NULL; |
| 721 | } |
| 722 | |
| 723 | if ((rtyp!=IDHDL)&&(rtyp!=ALIAS_CMD)&&(e==NULL)) |
| 724 | { |
| 725 | if (iiCheckRing(t)) return NULL; |
| 726 | void *x = data; |
| 727 | if (rtyp==VNOETHER) x = (void *)pCopy((currRing->ppNoether)); |
| 728 | else if ((rtyp==VMINPOLY) && nCoeff_is_algExt(currRing->cf) && (!nCoeff_is_GF(currRing->cf))) |
| 729 | { |
| 730 | const ring A = currRing->cf->extRing; |
| 731 | |
| 732 | assume( A != NULL ); |
| 733 | assume( A->qideal != NULL ); |
| 734 | |
| 735 | x=(void *)p_Copy(A->qideal->m[0], A); |
| 736 | } |
| 737 | data=NULL; |
| 738 | return x; |
| 739 | } |
| 740 | void *d=Data(); // will also do a iiCheckRing |
| 741 | if ((!errorreported) && (d!=NULL)) return s_internalCopy(t,d); |
| 742 | return NULL; |
| 743 | } |
| 744 | |
| 745 | //void * sleftv::CopyD() |
| 746 | //{ |
no test coverage detected