pike.git/
src/
mapping.h
Branch:
Tag:
Non-build tags
All tags
No tags
2008-06-24
2008-06-24 18:45:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>
aa95def97423c1bc589d0f802a91575dc83594b8 (
6
lines) (+
5
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
First go at generation counting for mappings.
Rev: src/mapping.c:1.202
Rev: src/mapping.h:1.69
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: mapping.h,v 1.
68
2008/
05
/
11
14
:
55
:
53
mast
Exp $
+
|| $Id: mapping.h,v 1.
69
2008/
06
/
24
18
:
45
:
56
grubba
Exp $
*/ #ifndef MAPPING_H
17:
#define MAPPING_WEAK_VALUES 4 #define MAPPING_WEAK 6 #define MAPPING_FLAG_WEAK 6 /* Compat. */
+
#define MAPPING_DIRTY 0x0100 /* Bump generation_cnt. */
struct keypair {
32:
INT32 hardlinks; INT32 size, hashsize; INT32 num_keypairs;
+
INT32 generation_cnt;
TYPE_FIELD ind_types, val_types; INT16 flags; struct keypair *free_list;
368:
struct mapping *m, const struct svalue *look_for, const struct svalue *key );
+
PMOD_EXPORT INT32 mapping_generation(struct mapping *m);
#ifdef PIKE_DEBUG void check_mapping(const struct mapping *m); void check_all_mappings(void);