Changeset c232af in git for Singular/lists.h
- Timestamp:
- Aug 14, 2000, 2:58:28 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d26c2e9dd38f1531c0e77c38e6177109182b5bca
- Parents:
- 4697a8a1ccbf49d0048033ea29c651e3966ba729
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/lists.h
r4697a8a rc232af 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: lists.h,v 1.1 2 1999-11-15 17:20:19obachman Exp $ */6 /* $Id: lists.h,v 1.13 2000-08-14 12:56:35 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: handling of the list type 9 9 */ 10 10 #include "structs.h" 11 #include "mmemory.h"11 #include <omalloc.h> 12 12 #include "subexpr.h" 13 13 #include "tok.h" 14 #if HAVE_ASO == 115 #include "lists.aso"16 #endif17 14 18 15 #ifdef MDEBUG … … 36 33 if (m[i].rtyp!=DEF_CMD) m[i].CleanUp(); 37 34 } 38 Free((ADDRESS)m, (nr+1)*sizeof(sleftv));35 omFreeSize((ADDRESS)m, (nr+1)*sizeof(sleftv)); 39 36 nr=-1; 40 37 } 41 Free((ADDRESS)this, sizeof(slists));38 omFreeSize((ADDRESS)this, sizeof(slists)); 42 39 } 43 40 } … … 67 64 #if ! defined(MDEBUG) || defined(LISTS_CC) 68 65 INLINE_THIS void slists::Init(int l=0) 69 { nr=l-1; m=(sleftv *)((l>0) ? Alloc0(l*sizeof(sleftv)): NULL);66 { nr=l-1; m=(sleftv *)((l>0) ? omAlloc0(l*sizeof(sleftv)): NULL); 70 67 #ifdef HAVE_NAMESPACES_N 71 68 src_packhdl = namespaceroot->get(namespaceroot->name, 0, TRUE); … … 74 71 #endif 75 72 73 extern omBin slists_bin; 76 74 #undef INLINE_THIS 77 75
Note: See TracChangeset
for help on using the changeset viewer.