Changeset 143730 in git
- Timestamp:
- Feb 4, 2002, 6:12:59 PM (22 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 28e0ac8cfc405def682d3274f90c18f7d6cc46f5
- Parents:
- 38900091e042419b890903cee4c2f780c11413ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ring.cc
r389000 r143730 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.18 0 2002-02-04 14:23:18Singular Exp $ */4 /* $Id: ring.cc,v 1.181 2002-02-04 17:12:59 Singular Exp $ */ 5 5 6 6 /* … … 2649 2649 /*polynomial ring*/ 2650 2650 res->OrdSgn = 1; 2651 2651 2652 2652 int tmpref=r->cf->ref; 2653 2653 rComplete(res, 1); … … 2664 2664 WarnS("Hannes: you still need to implement this"); 2665 2665 // simple=FALSE; // sorting needed 2666 } 2666 } 2667 2667 return rModifyRing(r, ommit_degree, ommit_comp, exp_limit); 2668 2668 } … … 2673 2673 } 2674 2674 2675 2675 2676 2676 void rKillModifiedRing(ring r) 2677 2677 { … … 4042 4042 if (v->m[i].Typ()==STRING_CMD) 4043 4043 R->names[i]=omStrDup((char *)v->m[i].Data()); 4044 else if (v->m[i].Typ()==POLY_CMD) 4045 { 4046 poly p=(poly)v->m[i].Data(); 4047 int nr=pIsPurePower(p); 4048 if (nr>0) 4049 R->names[i]=omStrDup(currRing->names[nr-1]); 4050 else 4051 { 4052 Werror("var name %d must be a string or a ring variable",i+1); 4053 goto rCompose_err; 4054 } 4055 } 4044 4056 else 4045 4057 { 4046 i--;4047 while (i>=0) { omFree(R->names[i]); i--; }4048 omFree(R->names);4049 4058 Werror("var name %d must be `string`",i+1); 4050 4059 goto rCompose_err; … … 4167 4176 4168 4177 rCompose_err: 4178 if (R->N>0) 4179 { 4180 int i; 4181 if (R->names!=NULL) 4182 { 4183 i=R->N; 4184 while (i>=0) { if (R->names[i]!=NULL) omFree(R->names[i]); i--; } 4185 omFree(R->names); 4186 } 4187 } 4188 if (R->order!=NULL) omFree(R->order); 4189 if (R->block0!=NULL) omFree(R->block0); 4190 if (R->block1!=NULL) omFree(R->block1); 4191 if (R->wvhdl!=NULL) omFree(R->wvhdl); 4169 4192 omFree(R); 4170 4193 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.