pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:880:    }   #endif    md->flags = flags;   }      PMOD_EXPORT void low_mapping_insert(struct mapping *m,    const struct svalue *key,    const struct svalue *val,    int overwrite)   { -  unsigned INT32 h,h2; +  size_t h,h2;    struct keypair *k, **prev;    struct mapping_data *md, *omd;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");   #endif       h2=hash_svalue(key);   
pike.git/src/mapping.c:1000:    low_mapping_insert(m,key,val,1);   }      /* Inline the above in this file. */   #define mapping_insert(M, KEY, VAL) low_mapping_insert ((M), (KEY), (VAL), 1)      PMOD_EXPORT union anything *mapping_get_item_ptr(struct mapping *m,    const struct svalue *key,    TYPE_T t)   { -  unsigned INT32 h, h2; +  size_t h, h2;    struct keypair *k, **prev;    struct mapping_data *md,*omd;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");       if(d_flag>1) check_mapping(m);       debug_malloc_touch(m);
pike.git/src/mapping.c:1114:    if(d_flag > 1) check_mapping_type_fields(m);   #endif       return & ( k->val.u );   }      PMOD_EXPORT void map_delete_no_free(struct mapping *m,    const struct svalue *key,    struct svalue *to)   { -  unsigned INT32 h,h2; +  size_t h,h2;    struct keypair *k, **prev;    struct mapping_data *md,*omd;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");    if(d_flag>1) check_mapping(m);    debug_malloc_touch(m);   #endif   
pike.git/src/mapping.c:1267: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG    if(d_flag>1) check_mapping(m);   #endif    }   }      PMOD_EXPORT struct svalue *low_mapping_lookup(struct mapping *m,    const struct svalue *key)   { -  unsigned INT32 h,h2; +  size_t h,h2;    struct keypair *k=0, **prev=0;    struct mapping_data *md, *omd;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");    if(d_flag>1) check_mapping(m);   #endif       h2=hash_svalue(key);
pike.git/src/mapping.c:2392:    struct mapping_data *md, *omd;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");   #endif    md=m->data;       if(md->size)    { -  unsigned INT32 h2,h=0; +  size_t h2,h=0;    struct keypair *k=md->hash[0], **prev;       if(key)    {    h2=hash_svalue(key);       FIND();       if(!k)    {
pike.git/src/mapping.c:2554: Inside #if defined(PIKE_DEBUG)
   Pike_fatal("Mapping indices type field lies.\n");       if (TYPEOF(k->val) > MAX_TYPE)    Pike_fatal("Invalid mapping keypair value type: %s\n",    get_name_of_type(TYPEOF(k->val)));    if(! ( (1 << TYPEOF(k->val)) & (md->val_types) ))    Pike_fatal("Mapping values type field lies.\n");       check_svalue(& k->ind);    check_svalue(& k->val); -  -  /* FIXME add check for k->hval -  * beware that hash_svalue may be threaded and locking -  * is required!! -  */ +     }       if(md->size != num)    Pike_fatal("Shields are failing, hull integrity down to 20%%\n");       in_check_mapping=0;   }      void check_all_mappings(void)   {