Changeset d5add65 in git
- Timestamp:
- Nov 16, 2011, 4:00:01 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- b565d4f69d962cf1746a77db46934de7cc17f5e4
- Parents:
- 9875202a2c72496bbc39676b4ca272ba4da36c09
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-11-16 16:00:01+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2013-01-18 16:15:04+01:00
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r9875202 rd5add65 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
r9875202 rd5add65 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
r9875202 rd5add65 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/table.h
r9875202 rd5add65 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.