Changeset 223636 in git
- Timestamp:
- Jan 7, 2009, 4:22:40 PM (14 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 2c03503b0ef863a6806cf7c05b2364038ad59a1a
- Parents:
- 14193f37566dc9e37aa5284d788883e688efd44e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ring.cc
r14193f r223636 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.1 09 2009-01-07 14:54:05Singular Exp $ */4 /* $Id: ring.cc,v 1.110 2009-01-07 15:22:40 Singular Exp $ */ 5 5 6 6 /* … … 1466 1466 int i,j; 1467 1467 ring res=(ring)omAllocBin(ip_sring_bin); 1468 memset(res,0,sizeof(ip_sring)); 1469 //memcpy4(res,r,sizeof(ip_sring)); 1468 1470 res->idroot=NULL; /* local objects */ 1469 1471 //int* order; /* array of orderings */ … … 1508 1510 1509 1511 res->N=r->N; /* number of vars */ 1510 1511 1512 res->P=r->P; /* number of pars */ 1512 1513 res->OrdSgn=r->OrdSgn; /* 1 for polynomial rings, -1 otherwise */ … … 1587 1588 // nc_struct* _nc; // private 1588 1589 #endif 1589 1590 memcpy4(res,r,sizeof(ip_sring)); 1591 res->NegWeightL_Offset=NULL; 1592 res->VarL_Offset=NULL; 1593 res->ordsgn=NULL; 1594 res->typ=NULL; 1595 res->order=NULL; 1596 res->VarOffset = NULL; 1597 res->p_Procs=NULL; 1590 res->options=r->options; 1591 #ifdef HAVE_RINGS 1592 res->ringtype=r->ringtype; 1593 #endif 1598 1594 res->cf=NULL; 1599 1595 res->PolyBin=NULL; 1600 res->ref=0;1596 // 1601 1597 if (r->algring!=NULL) 1602 1598 r->algring->ref++; 1599 res->algring=r->algring; 1603 1600 if (r->parameter!=NULL) 1604 1601 { … … 1649 1646 res->names[i] = omStrDup(r->names[i]); 1650 1647 } 1651 res->idroot = NULL;1652 1648 if (r->qideal!=NULL) 1653 1649 { … … 1655 1651 else res->qideal = NULL; 1656 1652 } 1653 else res->qideal = NULL; 1657 1654 #ifdef HAVE_PLURAL 1658 1655 res->GetNC() = NULL; // copy is purely commutative!!!
Note: See TracChangeset
for help on using the changeset viewer.