Changeset 0e051f in git for Singular/subexpr.cc
- Timestamp:
- Apr 27, 2010, 4:19:36 PM (13 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 4bfe6536b8ffa51f49472c1c71acd83d84b61915
- Parents:
- 49abe32113946584967f7bc6a8d3edfd9b6f848c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/subexpr.cc
r49abe32 r0e051f 39 39 #include "subexpr.h" 40 40 41 42 omBin sSubexpr_bin = omGetSpecBin(sizeof(sSubexpr)); 41 omBin sSubexpr_bin = omGetSpecBin(sizeof(_ssubexpr)); 43 42 omBin sleftv_bin = omGetSpecBin(sizeof(sleftv)); 44 43 omBin procinfo_bin = omGetSpecBin(sizeof(procinfo)); … … 1255 1254 } 1256 1255 #endif 1256 idhdl save_ring=currRingHdl; 1257 1257 v->Init(); 1258 1258 if(packhdl != NULL) … … 1312 1312 } 1313 1313 } 1314 if (yyInRingConstruction) 1315 { 1316 currRingHdl=NULL; 1317 } 1314 1318 /* 4. local ring: ringvar */ 1315 1319 if ((currRingHdl!=NULL) && (IDLEV(currRingHdl)==myynest) 1316 && (!yyInRingConstruction))1320 /*&& (!yyInRingConstruction)*/) 1317 1321 { 1318 1322 int vnr; … … 1338 1342 { 1339 1343 BOOLEAN ok=FALSE; 1340 poly p = (!yyInRingConstruction) ? pmInit(id,ok) : (poly)NULL; 1344 /*poly p = (!yyInRingConstruction) ? pmInit(id,ok) : (poly)NULL;*/ 1345 poly p = pmInit(id,ok); 1341 1346 if (ok) 1342 1347 { … … 1352 1357 #endif 1353 1358 } 1354 else 1355 if (pIsConstant(p)) 1359 else if (pIsConstant(p)) 1356 1360 { 1357 1361 v->data = pGetCoeff(p); … … 1375 1379 poly p = ((currRing!=NULL) /* ring required */ 1376 1380 && (currRingHdl!=NULL) 1377 && (!yyInRingConstruction) /*not in decl */1381 /*&& (!yyInRingConstruction) - not in decl */ 1378 1382 && (IDLEV(currRingHdl)!=myynest)) /* already in case 4/6 */ 1379 1383 ? pmInit(id,ok) : (poly)NULL; … … 1446 1450 v->name = id; 1447 1451 } 1452 currRingHdl=save_ring; 1448 1453 return; 1449 1454 id_found: // we have an id (in h) found, to set the data in from h … … 1453 1458 v->name = IDID(h); 1454 1459 v->attribute=IDATTR(h); 1460 currRingHdl=save_ring; 1455 1461 } 1456 1462
Note: See TracChangeset
for help on using the changeset viewer.