Changeset ecf019 in git
- Timestamp:
- Mar 2, 2012, 3:29:37 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 6a9f2e15e342b18ddc6a8d27963414c1e03255a8
- Parents:
- ece1ce5f2a8a9e000496d4f95d697f07df0551e6
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rece1ce recf019 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id$ */5 4 6 5 /* … … 3598 3597 { 3599 3598 lists l=(lists)v->Data(); 3600 res->data = (char *)(long)(l ->nr+1);3599 res->data = (char *)(long)(lSize(l)+1); 3601 3600 return FALSE; 3602 3601 } -
Singular/lists.cc
rece1ce recf019 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id$ */5 4 /* 6 5 * ABSTRACT: handling of the list type … … 23 22 omBin slists_bin = omGetSpecBin(sizeof(slists)); 24 23 24 int lSize(lists L) 25 { 26 int n=L->nr; 27 while ((n>=0)&&(L->m[n].rtyp==DEF_CMD)) n--; 28 return n; 29 } 30 25 31 lists lCopy(lists L) 26 32 { … … 156 162 lists ul=(lists)u->Data(); 157 163 int VIndex=(int)(long)v->Data()-1; 164 int EndIndex=lSize(ul); 158 165 159 166 if((0<=VIndex)&&(VIndex<=ul->nr)) … … 162 169 int i,j; 163 170 lists l=(lists) omAllocBin(slists_bin); 164 l->Init( ul->nr);165 166 for(i=j=0;i<= ul->nr;i++,j++)171 l->Init(EndIndex+(VIndex>EndIndex)); 172 173 for(i=j=0;i<=EndIndex;i++,j++) 167 174 { 168 175 if (i!=VIndex) -
Singular/lists.h
rece1ce recf019 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id$ */7 6 /* 8 7 * ABSTRACT: handling of the list type … … 50 49 typedef slists * lists; 51 50 51 int lSize(lists L); 52 52 lists lCopy(lists L); 53 53 lists lInsert0(lists ul, leftv v, int pos); -
Singular/subexpr.cc
rece1ce recf019 5 5 * ABSTRACT: handling of leftv 6 6 */ 7 /* $Id$ */8 7 9 8 #include <stdlib.h> … … 231 230 { 232 231 lists l=(lists)d; 233 if (l ->nr<0)232 if (lSize(l)<0) 234 233 { 235 234 PrintNSpaces(spaces);
Note: See TracChangeset
for help on using the changeset viewer.