File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,6 @@ typedef struct _mbfl_allocators {
39
39
void * (* realloc )(void * , size_t );
40
40
void * (* calloc )(size_t , size_t );
41
41
void (* free )(void * );
42
- void * (* pmalloc )(size_t );
43
- void * (* prealloc )(void * , size_t );
44
- void (* pfree )(void * );
45
42
} mbfl_allocators ;
46
43
47
44
MBFLAPI extern mbfl_allocators * __mbfl_allocators ;
@@ -50,8 +47,5 @@ MBFLAPI extern mbfl_allocators *__mbfl_allocators;
50
47
#define mbfl_realloc (__mbfl_allocators->realloc)
51
48
#define mbfl_calloc (__mbfl_allocators->calloc)
52
49
#define mbfl_free (__mbfl_allocators->free)
53
- #define mbfl_pmalloc (__mbfl_allocators->pmalloc)
54
- #define mbfl_prealloc (__mbfl_allocators->preallloc)
55
- #define mbfl_pfree (__mbfl_allocators->pfree)
56
50
57
51
#endif /* MBFL_ALLOCATORS_H */
Original file line number Diff line number Diff line change @@ -237,29 +237,11 @@ static void _php_mb_allocators_free(void *ptr)
237
237
efree (ptr );
238
238
}
239
239
240
- static void * _php_mb_allocators_pmalloc (size_t sz )
241
- {
242
- return pemalloc (sz , 1 );
243
- }
244
-
245
- static void * _php_mb_allocators_prealloc (void * ptr , size_t sz )
246
- {
247
- return perealloc (ptr , sz , 1 );
248
- }
249
-
250
- static void _php_mb_allocators_pfree (void * ptr )
251
- {
252
- pefree (ptr , 1 );
253
- }
254
-
255
240
static const mbfl_allocators _php_mb_allocators = {
256
241
_php_mb_allocators_malloc ,
257
242
_php_mb_allocators_realloc ,
258
243
_php_mb_allocators_calloc ,
259
244
_php_mb_allocators_free ,
260
- _php_mb_allocators_pmalloc ,
261
- _php_mb_allocators_prealloc ,
262
- _php_mb_allocators_pfree
263
245
};
264
246
/* }}} */
265
247
You can’t perform that action at this time.
0 commit comments