Changeset 281335 in git
- Timestamp:
- Apr 6, 2016, 2:16:24 PM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6538bdbf4f61760cc2956dcad64e92c75f6531e6
- Parents:
- 9e5efff5850edfdd2e6e724e90a5513daf76327c
- Location:
- libpolys/misc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/misc/int64vec.h
r9e5efff r281335 8 8 */ 9 9 #include <string.h> 10 #include <omalloc/omalloc .h>10 #include <omalloc/omallocClass.h> 11 11 #include <misc/auxiliary.h> 12 12 #include <misc/intvec.h> 13 13 14 class int64vec 14 class int64vec :public omallocClass 15 15 { 16 16 private: … … 89 89 90 90 #endif 91 92 93 94 95 96 97 98 99 100 101 -
libpolys/misc/intvec.cc
r9e5efff r281335 8 8 #define INTVEC_CC 9 9 10 11 12 13 14 10 #include <misc/auxiliary.h> 15 11 … … 23 19 24 20 /*0 implementation*/ 25 26 omBin intvec_bin = omGetSpecBin(sizeof(intvec));27 21 28 22 intvec::intvec(int s, int e) -
libpolys/misc/intvec.h
r9e5efff r281335 8 8 */ 9 9 #include <string.h> 10 #include <omalloc/omalloc .h>10 #include <omalloc/omallocClass.h> 11 11 #include <reporter/reporter.h> 12 12 13 13 14 extern omBin intvec_bin; 15 16 class intvec 14 class intvec :public omallocClass 17 15 { 18 16 private: … … 123 121 return m; 124 122 } 125 void* operator new ( size_t size )126 {127 void* addr;128 //omTypeAlloc(void*, addr, size);129 addr=omAlloc0Bin(intvec_bin);130 return addr;131 }132 void operator delete ( void* block )133 { //omfree( block );134 omFreeBin((ADDRESS)block, intvec_bin);135 }136 123 // keiner (ausser obachman) darf das folgenden benutzen !!! 137 124 inline int * ivGetVec() { return v; }
Note: See TracChangeset
for help on using the changeset viewer.