2
+----------------------------------------------------------------------+
4
+----------------------------------------------------------------------+
5
| Copyright (c) 1997-2004 The PHP Group |
6
+----------------------------------------------------------------------+
7
| This source file is subject to version 3.0 of the PHP license, |
8
| that is bundled with this package in the file LICENSE, and is |
9
| available through the world-wide-web at the following url: |
10
| http://www.php.net/license/3_0.txt. |
11
| If you did not receive a copy of the PHP license and are unable to |
12
| obtain it through the world-wide-web, please send a note to |
13
| license@php.net so we can mail you a copy immediately. |
14
+----------------------------------------------------------------------+
15
| Author: Marcus Boerger <helly@php.net> |
16
+----------------------------------------------------------------------+
19
/* $Id: cdb_make.h,v 1.6 2004/01/08 17:31:56 sniper Exp $ */
21
/* incorporated from D.J.Bernstein's cdb-0.75 (http://cr.yp.to/cdb.html)*/
29
#define CDB_HPLIST 1000
37
struct cdb_hp hp[CDB_HPLIST];
38
struct cdb_hplist *next;
43
/* char bspace[8192]; */
47
struct cdb_hplist *head;
48
struct cdb_hp *split; /* includes space for hash */
57
int cdb_make_start(struct cdb_make *, php_stream * TSRMLS_DC);
58
int cdb_make_addbegin(struct cdb_make *, unsigned int, unsigned int TSRMLS_DC);
59
int cdb_make_addend(struct cdb_make *, unsigned int, unsigned int, uint32 TSRMLS_DC);
60
int cdb_make_add(struct cdb_make *, char *, unsigned int, char *, unsigned int TSRMLS_DC);
61
int cdb_make_finish(struct cdb_make * TSRMLS_DC);
62
char *cdb_make_version();