src/os/win32/ngx_alloc.h - nginx source code

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_ALLOC_H_INCLUDED_
  6. #define _NGX_ALLOC_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. void *ngx_alloc(size_t size, ngx_log_t *log);
  10. void *ngx_calloc(size_t size, ngx_log_t *log);

  11. #define ngx_free          free
  12. #define ngx_memalign(alignment, size, log)  ngx_alloc(size, log)

  13. extern ngx_uint_t  ngx_pagesize;
  14. extern ngx_uint_t  ngx_pagesize_shift;
  15. extern ngx_uint_t  ngx_cacheline_size;


  16. #endif /* _NGX_ALLOC_H_INCLUDED_ */