File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
detect_words = []
17
17
with open ('include/feature_detect.h' , 'r' ) as f :
18
18
for line in f :
19
- m = re .search ('check_(\w+)' , line )
19
+ m = re .search (r 'check_(\w+)' , line )
20
20
if m :
21
21
detect_words .append (m .group (1 ))
22
22
for name in spec .structures :
@@ -216,7 +216,7 @@ def getraw(val):
216
216
217
217
def getsize (raw ):
218
218
if '[' in raw and not type == 'char' :
219
- return re .search ('.*\[(.+)\]' , raw ).group (1 )
219
+ return re .search (r '.*\[(.+)\]' , raw ).group (1 )
220
220
return None
221
221
222
222
def typetmpname (root ):
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ class memory_pool
147
147
// / Create a 4mb size memory pool
148
148
memory_pool (unsigned mbs = 4 ) : pool(mbs * 1024 * 1024 ) {}
149
149
150
- template <typename T>
150
+ template <typename T> __attribute__ ((malloc))
151
151
inline T* allocate(uint32_t _count)
152
152
{
153
153
if (_count == 0 ) return nullptr ;
You can’t perform that action at this time.
0 commit comments