mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
Reduced the number of preprocessor directives.
This commit is contained in:
parent
cfe194ef59
commit
01f07bde7e
1 changed files with 1 additions and 5 deletions
|
|
@ -45,9 +45,7 @@
|
|||
|
||||
#define ngx_slab_junk(p, size) ngx_memset(p, 0xA5, size)
|
||||
|
||||
#else
|
||||
|
||||
#if (NGX_HAVE_DEBUG_MALLOC)
|
||||
#elif (NGX_HAVE_DEBUG_MALLOC)
|
||||
|
||||
#define ngx_slab_junk(p, size) \
|
||||
if (ngx_debug_malloc) ngx_memset(p, 0xA5, size)
|
||||
|
|
@ -58,8 +56,6 @@
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
static ngx_slab_page_t *ngx_slab_alloc_pages(ngx_slab_pool_t *pool,
|
||||
ngx_uint_t pages);
|
||||
static void ngx_slab_free_pages(ngx_slab_pool_t *pool, ngx_slab_page_t *page,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue