Changeset 6ae4f5 in git for Singular/lists.cc
- Timestamp:
- Apr 9, 1997, 2:20:17 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- feaddd38f9cf78a784df825347f9f83cbb667a40
- Parents:
- e2f1c7b90d7253794bed6c9fcd2adf63ddae5124
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/lists.cc
re2f1c7 r6ae4f5 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lists.cc,v 1. 3 1997-04-02 15:07:20Singular Exp $ */4 /* $Id: lists.cc,v 1.4 1997-04-09 12:19:55 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of the list type … … 70 70 lists lInsert0(lists ul, leftv v, int pos) 71 71 { 72 if ((pos<0)||(v->rtyp==NONE)) 73 return NULL; 72 74 lists l=(lists) Alloc(sizeof(slists)); 73 if (pos<0) return NULL;74 75 l->Init(max(ul->nr+2,pos+1)); 75 76 int i,j; … … 99 100 lists ul=(lists)u->CopyD(); 100 101 res->data=(char *)lInsert0(ul,v,0); 101 return FALSE;102 return (res->data==NULL); 102 103 } 103 104 … … 109 110 lists ul=(lists)u->CopyD(); 110 111 res->data=(char *)lInsert0(ul,v,(int)w->Data()); 111 return FALSE;112 return (res->data==NULL); 112 113 } 113 114 … … 119 120 lists ul=(lists)u->CopyD(); 120 121 res->data=(char *)lInsert0(ul,v,ul->nr+1); 121 return FALSE;122 return (res->data==NULL); 122 123 } 123 124
Note: See TracChangeset
for help on using the changeset viewer.