aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/memorypool.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-12 19:08:02 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-12 19:08:02 +0300
commit1430529713674acda1c16112d57c506dbd0c9f8e (patch)
tree22e6004f53a12967f96b686ba0f7606e5b1d7f39 /src/microhttpd/memorypool.h
parentb98f757af86d20eb63a9156768bcbc24dc237afc (diff)
downloadlibmicrohttpd-1430529713674acda1c16112d57c506dbd0c9f8e.tar.gz
libmicrohttpd-1430529713674acda1c16112d57c506dbd0c9f8e.zip
memorypool: use 'bool' instead MHD_YES/MHD_NO and 'uint8_t' instead of 'char'
Diffstat (limited to 'src/microhttpd/memorypool.h')
-rw-r--r--src/microhttpd/memorypool.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h
index 2863b2f3..79b10e73 100644
--- a/src/microhttpd/memorypool.h
+++ b/src/microhttpd/memorypool.h
@@ -32,6 +32,9 @@
32 32
33#include "mhd_options.h" 33#include "mhd_options.h"
34#include <stddef.h> 34#include <stddef.h>
35#ifdef HAVE_STDBOOL_H
36#include <stdbool.h>
37#endif
35 38
36/** 39/**
37 * Opaque handle for a memory pool. 40 * Opaque handle for a memory pool.
@@ -65,7 +68,7 @@ MHD_pool_destroy (struct MemoryPool *pool);
65 * 68 *
66 * @param pool memory pool to use for the operation 69 * @param pool memory pool to use for the operation
67 * @param size number of bytes to allocate 70 * @param size number of bytes to allocate
68 * @param from_end allocate from end of pool (set to #MHD_YES); 71 * @param from_end allocate from end of pool (set to 'true');
69 * use this for small, persistent allocations that 72 * use this for small, persistent allocations that
70 * will never be reallocated 73 * will never be reallocated
71 * @return NULL if the pool cannot support size more 74 * @return NULL if the pool cannot support size more
@@ -73,8 +76,8 @@ MHD_pool_destroy (struct MemoryPool *pool);
73 */ 76 */
74void * 77void *
75MHD_pool_allocate (struct MemoryPool *pool, 78MHD_pool_allocate (struct MemoryPool *pool,
76 size_t size, 79 size_t size,
77 int from_end); 80 bool from_end);
78 81
79 82
80/** 83/**