diff options
author | James Bursa <james@netsurf-browser.org> | 2005-05-11 20:33:25 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-05-11 20:33:25 +0000 |
commit | 5137041fed733b33a4b44f0cf5d77079f38dc0ac (patch) | |
tree | c3006333966ac78814799008de9fe4f770c0f24c /utils/pool.h | |
parent | 6257ee1fecd985ceba2e26a1269020a8662d4c43 (diff) | |
download | netsurf-5137041fed733b33a4b44f0cf5d77079f38dc0ac.tar.gz netsurf-5137041fed733b33a4b44f0cf5d77079f38dc0ac.tar.bz2 |
[project @ 2005-05-11 20:33:25 by bursa]
Remove no longer used memory pool code.
svn path=/import/netsurf/; revision=1720
Diffstat (limited to 'utils/pool.h')
-rw-r--r-- | utils/pool.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/utils/pool.h b/utils/pool.h deleted file mode 100644 index 4dceb3f47..000000000 --- a/utils/pool.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of NetSurf, http://netsurf.sourceforge.net/ - * Licensed under the GNU General Public License, - * http://www.opensource.org/licenses/gpl-license - * Copyright 2003 James Bursa <bursa@users.sourceforge.net> - */ - -/** \file - * Memory pool manager (interface). - * - * A memory pool is intended for allocating memory which is required in small - * blocks and all released together. It avoids the overhead of many small - * malloc()s. - * - * Create a pool using pool_create(), and allocate memory from it using - * pool_alloc() and pool_string(). Destroy and free the entire pool using - * pool_destroy(). - * - * The suggested block size should be large enough to store many allocations. - * Use a multiple of the size of contents, if fixed. Larger allocations than - * the block size are possible. - */ - -#ifndef _NETSURF_UTILS_POOL_H_ -#define _NETSURF_UTILS_POOL_H_ - -#include <stdlib.h> - -/** Opaque memory pool handle. */ -typedef struct pool *pool; - -pool pool_create(size_t block_size); -void pool_destroy(pool p); -void *pool_alloc(pool p, size_t size); -char *pool_string(pool p, const char *s); - -#endif - |