pike.git
/
src
/
mapping.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/mapping.h:1:
/*\ ||| This file a part of Pike, and is copyright by Fredrik Hubinette ||| Pike is distributed as GPL (General Public License) ||| See the files COPYING and DISCLAIMER for more information. \*/ /*
-
* $Id: mapping.h,v 1.
28
2000/
07
/
28
17:
16:
55
hubbe
Exp $
+
* $Id: mapping.h,v 1.
29
2000/
08
/
03
17:
55
:
50
grubba
Exp $
*/ #ifndef MAPPING_H #define MAPPING_H #include "las.h" #include "block_alloc_h.h" #define MAPPING_FLAG_WEAK 1 struct keypair { struct keypair *next; unsigned INT32 hval; struct svalue ind, val; }; struct mapping_data {
-
INT32
refs;
+
ptrdiff_t
refs;
INT32 valrefs; /* lock values too */ INT32 hardlinks; INT32 size, hashsize; INT32 num_keypairs; TYPE_FIELD ind_types, val_types; struct keypair *free_list; struct keypair *hash[1 /* hashsize */ ]; /* struct keypair data_block[ hashsize * AVG_LINK_LENGTH ] */ }; struct mapping {
-
INT32
refs;
+
ptrdiff_t
refs;
#ifdef PIKE_SECURITY struct object *prot; #endif #ifdef PIKE_DEBUG INT32 debug_size; #endif INT16 flags; struct mapping_data *data; struct mapping *next, *prev; };