diff options
author | SVN Migration <svn@php.net> | 2002-08-06 16:36:06 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2002-08-06 16:36:06 +0000 |
commit | 2ccef75a1992e45f9b13cc7d7314a62bc9c0f2bd (patch) | |
tree | b1da83411c9efb34579ca041f7ddcc7d62652611 /Zend/zend_mm.h | |
parent | d5ec9a9886f5b7e867f0bbadee0ff2f026004d95 (diff) | |
download | php-git-dev.tar.gz |
This commit was manufactured by cvs2svn to create tag 'dev'.dev
Diffstat (limited to 'Zend/zend_mm.h')
-rw-r--r-- | Zend/zend_mm.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/Zend/zend_mm.h b/Zend/zend_mm.h deleted file mode 100644 index 988015b199..0000000000 --- a/Zend/zend_mm.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | Zend Engine | - +----------------------------------------------------------------------+ - | Copyright (c) 1998-2002 Zend Technologies Ltd. (http://www.zend.com) | - +----------------------------------------------------------------------+ - | This source file is subject to version 2.00 of the Zend license, | - | that is bundled with this package in the file LICENSE, and is | - | available at through the world-wide-web at | - | http://www.zend.com/license/2_00.txt. | - | If you did not receive a copy of the Zend license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@zend.com so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Authors: Andi Gutmans <andi@zend.com> | - | Zeev Suraski <zeev@zend.com> | - +----------------------------------------------------------------------+ -*/ - -#ifndef _ZEND_MM_H -#define _ZEND_MM_H - -#include <sys/types.h> - -#include "zend_types.h" - -/* Define this to enable Zend MM */ -#define ZEND_MM - -/* mm block type */ -typedef struct _zend_mm_block { - unsigned int size : 31; - unsigned int type : 1; - size_t prev_size; -} zend_mm_block; - -typedef struct _zend_mm_free_block { - unsigned int size : 31; - unsigned int type : 1; - size_t prev_size; - struct _zend_mm_free_block *prev_free_block; - struct _zend_mm_free_block *next_free_block; -} zend_mm_free_block; - -typedef struct _zend_mm_segment { - struct _zend_mm_segment *next_segment; -} zend_mm_segment; - -#define ZEND_MM_NUM_BUCKETS 64 - -typedef struct _zend_mm_heap { - zend_mm_segment *segments_list; - size_t block_size; - zend_mm_free_block *free_buckets[ZEND_MM_NUM_BUCKETS]; -} zend_mm_heap; - -zend_bool zend_mm_startup(zend_mm_heap *heap, size_t block_size); -void zend_mm_shutdown(zend_mm_heap *heap); -void *zend_mm_alloc(zend_mm_heap *heap, size_t size); -void zend_mm_free(zend_mm_heap *heap, void *p); -void *zend_mm_realloc(zend_mm_heap *heap, void *p, size_t size); - -#endif /* _ZEND_MM_H */ |