Changeset 81c5cb in git
- Timestamp:
- Feb 6, 2012, 6:20:45 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 9ec1669f774f9fd5bc45c6c9b8b224cff15ab286
- Parents:
- eb2d25597130bb1991b6b11239571930294ba1d7
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-06 18:20:45+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-06 19:38:19+01:00
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/idrec.h
reb2d25 r81c5cb 49 49 idhdl get(const char * s, int lev); 50 50 idhdl set(const char * s, int lev, int t/*typ*/, BOOLEAN init=TRUE); 51 char * String( );51 char * String(BOOLEAN typed = FALSE); 52 52 // ~idrec(); 53 53 }; -
Singular/ipassign.cc
reb2d25 r81c5cb 200 200 if ( currRing->idroot != NULL ) 201 201 { 202 WerrorS("no minpoly allowed if there are local objects belonging to the basering"); 203 return TRUE; 204 } 202 #ifndef NDEBUG 203 // return TRUE; 204 idhdl p = currRing->idroot; 205 206 WarnS("no minpoly allowed if there are local objects belonging to the basering: "); 207 while(p != NULL) 208 { 209 Print(p->String(TRUE)); PrintLn(); 210 p = p->next; 211 } 212 #endif 213 } 214 215 assume (currRing->idroot==NULL); 205 216 206 217 number p = (number)a->CopyD(NUMBER_CMD); … … 208 219 if (n_IsZero(p, currRing->cf)) 209 220 { 221 n_Delete(&p, currRing); 210 222 WerrorS("cannot set minpoly to 0"); 211 223 return TRUE; 212 224 } 213 225 214 assume (currRing->idroot==NULL);215 216 226 // remove all object currently in the ring 217 227 while(currRing->idroot!=NULL) 218 228 { 229 #ifndef NDEBUG 230 Warn("killing a local object due to minpoly change: %s", IDID(currRing->idroot)); 231 #endif 219 232 killhdl2(currRing->idroot,&(currRing->idroot),currRing); 220 233 } -
Singular/ipid.cc
reb2d25 r81c5cb 223 223 } 224 224 225 char * idrec::String( )225 char * idrec::String(BOOLEAN typed) 226 226 { 227 227 sleftv tmp; … … 230 230 tmp.data=IDDATA(this); 231 231 tmp.name=IDID(this); 232 return tmp.String( );232 return tmp.String(NULL, typed); 233 233 } 234 234
Note: See TracChangeset
for help on using the changeset viewer.