- Timestamp:
- Jan 18, 2013, 6:45:36 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1f1fb0ae2d0228deb0e78489ca037165df05672b
- Parents:
- 95c8260b23a2326800f3f5fa9092330787e39d7a271d25946dbb409d16650bb1ecdffccf0c03594e
- Location:
- Singular
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/dmod.lib
r271d25 r5b32a1 1721 1721 dbprint(ppl-1, @R4); 1722 1722 ideal K4 = imap(@R2,K2); 1723 intvec saveopt=option(get); 1723 1724 option(redSB); 1724 1725 dbprint(ppl,"// -3-2- the final cosmetic std"); … … 1731 1732 ideal LD = K4; 1732 1733 export LD; 1734 option(set,saveopt); 1733 1735 return(@R4); 1734 1736 } -
Singular/LIB/finvar.lib
r271d25 r5b32a1 6462 6462 int dgb=degBound; 6463 6463 degBound = 0; 6464 intvec saveopt=option(get); 6464 6465 option(redSB); 6465 6466 ideal sP = groebner(ideal(P)); -
Singular/iparith.cc
r271d25 r5b32a1 4542 4542 { 4543 4543 res->data=ipNameList(((ring)v->Data())->idroot); 4544 return FALSE; 4545 } 4546 static BOOLEAN jjNAMES_I(leftv res, leftv v) 4547 { 4548 res->data=ipNameListLev((IDROOT),(int)(long)v->Data()); 4544 4549 return FALSE; 4545 4550 } -
Singular/ipid.cc
r271d25 r5b32a1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 4 5 /* 5 6 * ABSTRACT: identfier handling … … 519 520 } 520 521 522 lists ipNameListLev(idhdl root, int lev) 523 { 524 idhdl h=root; 525 /* compute the length */ 526 int l=0; 527 while (h!=NULL) { if (IDLEV(h)==lev) l++; h=IDNEXT(h); } 528 /* allocate list */ 529 lists L=(lists)omAllocBin(slists_bin); 530 L->Init(l); 531 /* copy names */ 532 h=root; 533 l=0; 534 while (h!=NULL) 535 { 536 if (IDLEV(h)==lev) 537 { 538 /* list is initialized with 0 => no need to clear anything */ 539 L->m[l].rtyp=STRING_CMD; 540 L->m[l].data=omStrDup(IDID(h)); 541 l++; 542 } 543 h=IDNEXT(h); 544 } 545 return L; 546 } 547 521 548 /* 522 549 * move 'tomove' from root1 list to root2 list -
Singular/ipid.h
r271d25 r5b32a1 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 6 7 /* 7 8 * ABSTRACT: identfier handling … … 98 99 void killhdl2(idhdl h, idhdl * ih, ring r); 99 100 lists ipNameList(idhdl root); 101 lists ipNameListLev(idhdl root, int lev); 100 102 void ipMoveId(idhdl h); 101 103 BOOLEAN checkPackage(package pack); -
Singular/iplib.cc
r95c826 r5b32a1 311 311 #ifndef LIBSINGULAR 312 312 // see below: 313 int save1=(si_opt_1& ~TEST_RINGDEP_OPTS);314 int save2=si_opt_2;313 BITSET save1=(test & ~TEST_RINGDEP_OPTS); 314 BITSET save2=verbose; 315 315 #endif 316 316 BOOLEAN err=yyparse(); … … 322 322 // the access to optionStruct and verboseStruct do not work 323 323 // on x86_64-Linux for pic-code 324 int save11= ( si_opt_1& ~TEST_RINGDEP_OPTS);324 BITSET save11= ( test & ~TEST_RINGDEP_OPTS); 325 325 if ((TEST_V_ALLWARN) && 326 326 (t==BT_proc) && 327 ((save1!=save11)||(save2!= si_opt_2)) &&327 ((save1!=save11)||(save2!=verbose)) && 328 328 (pi->libname!=NULL) && (pi->libname[0]!='\0')) 329 329 { … … 345 345 for (i=0; verboseStruct[i].setval!=0; i++) 346 346 { 347 if ((verboseStruct[i].setval & si_opt_2)347 if ((verboseStruct[i].setval & verbose) 348 348 && (!(verboseStruct[i].setval & save2))) 349 349 { 350 350 Print(" +%s",verboseStruct[i].name); 351 351 } 352 if (!(verboseStruct[i].setval & si_opt_2)352 if (!(verboseStruct[i].setval & verbose) 353 353 && ((verboseStruct[i].setval & save2))) 354 354 { … … 357 357 } 358 358 PrintLn(); 359 // PrintS(p);360 359 } 361 360 #endif -
Singular/ipshell.cc
r271d25 r5b32a1 1279 1279 idhdl h=(idhdl)v->data; 1280 1280 //Print("iiInternalExport('%s',%d)%s\n", v->name, toLev,""); 1281 if (IDLEV(h)==0) Warn("`%s` is already global",IDID(h)); 1281 if (IDLEV(h)==0) 1282 { 1283 if (!BVERBOSE(V_REDEFINE)) Warn("`%s` is already global",IDID(h)); 1284 } 1282 1285 else 1283 1286 { … … 1438 1441 if ((pack==currPack) && (old==(idhdl)v->data)) 1439 1442 { 1440 Warn("`%s` is already global",IDID(old));1443 if (!BVERBOSE(V_REDEFINE)) Warn("`%s` is already global",IDID(old)); 1441 1444 break; 1442 1445 } -
Singular/table.h
r271d25 r5b32a1 189 189 ,{D(jjMSTD), MSTD_CMD, LIST_CMD, MODUL_CMD , NO_PLURAL |ALLOW_RING} 190 190 ,{D(jjNAMEOF), NAMEOF_CMD, STRING_CMD, ANY_TYPE , ALLOW_PLURAL |ALLOW_RING} 191 ,{D(jjNAMES_I), NAMES_CMD, LIST_CMD, INT_CMD , ALLOW_PLURAL |ALLOW_RING} 191 192 ,{D(jjNAMES), NAMES_CMD, LIST_CMD, PACKAGE_CMD , ALLOW_PLURAL |ALLOW_RING} 192 193 ,{D(jjNAMES), NAMES_CMD, LIST_CMD, RING_CMD , ALLOW_PLURAL |ALLOW_RING}
Note: See TracChangeset
for help on using the changeset viewer.