pike.git / src / mapping.h

version» Context lines:

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.29 2000/08/03 17:55:50 grubba Exp $ +  * $Id: mapping.h,v 1.30 2000/08/09 12:49:28 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   { -  ptrdiff_t refs; +  INT32 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   { -  ptrdiff_t refs; +  INT32 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;   };