@@ -128,7 +128,7 @@ static size_t _real_page_size = ZEND_MM_PAGE_SIZE;
128128#endif
129129#ifndef ZEND_MM_CUSTOM
130130# define ZEND_MM_CUSTOM 1 /* support for custom memory allocator */
131- /* USE_ZEND_ALLOC=0 may switch to system malloc() */
131+ /* USE_ZEND_ALLOC=0 may switch to system malloc() */
132132#endif
133133#ifndef ZEND_MM_STORAGE
134134# define ZEND_MM_STORAGE 1 /* support for custom memory storage */
@@ -1157,7 +1157,7 @@ static zend_always_inline int zend_mm_small_size_to_bin(size_t size)
11571157{
11581158#if 0
11591159 int n ;
1160- /*0, 1, 2, 3, 4, 5, 6, 7, 8, 9 10, 11, 12*/
1160+ /*0, 1, 2, 3, 4, 5, 6, 7, 8, 9 10, 11, 12*/
11611161 static const int f1 [] = { 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 5 , 6 , 7 , 8 , 9 };
11621162 static const int f2 [] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 4 , 8 , 12 , 16 , 20 , 24 };
11631163
@@ -1185,8 +1185,8 @@ static zend_always_inline int zend_mm_small_size_to_bin(size_t size)
11851185
11861186static zend_never_inline void * zend_mm_alloc_small_slow (zend_mm_heap * heap , uint32_t bin_num ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC )
11871187{
1188- zend_mm_chunk * chunk ;
1189- int page_num ;
1188+ zend_mm_chunk * chunk ;
1189+ int page_num ;
11901190 zend_mm_bin * bin ;
11911191 zend_mm_free_slot * p , * end ;
11921192
@@ -1274,9 +1274,9 @@ static zend_always_inline void zend_mm_free_small(zend_mm_heap *heap, void *ptr,
12741274 } while (0 );
12751275#endif
12761276
1277- p = (zend_mm_free_slot * )ptr ;
1278- p -> next_free_slot = heap -> free_slot [bin_num ];
1279- heap -> free_slot [bin_num ] = p ;
1277+ p = (zend_mm_free_slot * )ptr ;
1278+ p -> next_free_slot = heap -> free_slot [bin_num ];
1279+ heap -> free_slot [bin_num ] = p ;
12801280}
12811281
12821282/********/
@@ -2014,7 +2014,7 @@ ZEND_API size_t zend_mm_gc(zend_mm_heap *heap)
20142014
20152015static zend_long zend_mm_find_leaks_small (zend_mm_chunk * p , uint32_t i , uint32_t j , zend_leak_info * leak )
20162016{
2017- int empty = 1 ;
2017+ int empty = 1 ;
20182018 zend_long count = 0 ;
20192019 int bin_num = ZEND_MM_SRUN_BIN_NUM (p -> map [i ]);
20202020 zend_mm_debug_info * dbg = (zend_mm_debug_info * )((char * )p + ZEND_MM_PAGE_SIZE * i + bin_data_size [bin_num ] * (j + 1 ) - ZEND_MM_ALIGNED_SIZE (sizeof (zend_mm_debug_info )));
@@ -2423,7 +2423,7 @@ static ZEND_COLD void ZEND_FASTCALL _efree_custom(void *ptr ZEND_FILE_LINE_DC ZE
24232423 AG (mm_heap )-> custom_heap .debug ._free (ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC );
24242424 } else {
24252425 AG (mm_heap )-> custom_heap .std ._free (ptr );
2426- }
2426+ }
24272427}
24282428
24292429static ZEND_COLD void * ZEND_FASTCALL _realloc_custom (void * ptr , size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC )
@@ -2812,9 +2812,9 @@ ZEND_API int zend_mm_is_custom_heap(zend_mm_heap *new_heap)
28122812}
28132813
28142814ZEND_API void zend_mm_set_custom_handlers (zend_mm_heap * heap ,
2815- void * (* _malloc )(size_t ),
2816- void (* _free )(void * ),
2817- void * (* _realloc )(void * , size_t ))
2815+ void * (* _malloc )(size_t ),
2816+ void (* _free )(void * ),
2817+ void * (* _realloc )(void * , size_t ))
28182818{
28192819#if ZEND_MM_CUSTOM
28202820 zend_mm_heap * _heap = (zend_mm_heap * )heap ;
@@ -2831,9 +2831,9 @@ ZEND_API void zend_mm_set_custom_handlers(zend_mm_heap *heap,
28312831}
28322832
28332833ZEND_API void zend_mm_get_custom_handlers (zend_mm_heap * heap ,
2834- void * (* * _malloc )(size_t ),
2835- void (* * _free )(void * ),
2836- void * (* * _realloc )(void * , size_t ))
2834+ void * (* * _malloc )(size_t ),
2835+ void (* * _free )(void * ),
2836+ void * (* * _realloc )(void * , size_t ))
28372837{
28382838#if ZEND_MM_CUSTOM
28392839 zend_mm_heap * _heap = (zend_mm_heap * )heap ;
@@ -2856,9 +2856,9 @@ ZEND_API void zend_mm_get_custom_handlers(zend_mm_heap *heap,
28562856
28572857#if ZEND_DEBUG
28582858ZEND_API void zend_mm_set_custom_debug_handlers (zend_mm_heap * heap ,
2859- void * (* _malloc )(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC ),
2860- void (* _free )(void * ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC ),
2861- void * (* _realloc )(void * , size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC ))
2859+ void * (* _malloc )(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC ),
2860+ void (* _free )(void * ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC ),
2861+ void * (* _realloc )(void * , size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC ))
28622862{
28632863#if ZEND_MM_CUSTOM
28642864 zend_mm_heap * _heap = (zend_mm_heap * )heap ;
0 commit comments