/[jscoverage]/trunk/js/jshash.cpp
ViewVC logotype

Diff of /trunk/js/jshash.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC revision 507 by siliconforks, Sun Jan 10 07:23:34 2010 UTC
# Line 1  Line 1 
1  /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-  /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2   *   *
3   * ***** BEGIN LICENSE BLOCK *****   * ***** BEGIN LICENSE BLOCK *****
4   * Version: MPL 1.1/GPL 2.0/LGPL 2.1   * Version: MPL 1.1/GPL 2.0/LGPL 2.1
# Line 40  Line 40 
40  /*  /*
41   * PR hash table package.   * PR hash table package.
42   */   */
 #include "jsstddef.h"  
43  #include <stdlib.h>  #include <stdlib.h>
44  #include <string.h>  #include <string.h>
45  #include "jstypes.h"  #include "jstypes.h"
46    #include "jsstdint.h"
47  #include "jsbit.h"  #include "jsbit.h"
48  #include "jsutil.h" /* Added by JSIFY */  #include "jsutil.h" /* Added by JSIFY */
49  #include "jshash.h" /* Added by JSIFY */  #include "jshash.h" /* Added by JSIFY */
# Line 73  Line 73 
73  static void  static void
74  DefaultFreeTable(void *pool, void *item, size_t size)  DefaultFreeTable(void *pool, void *item, size_t size)
75  {  {
76      free(item);      js_free(item);
77  }  }
78    
79  static JSHashEntry *  static JSHashEntry *
# Line 86  Line 86 
86  DefaultFreeEntry(void *pool, JSHashEntry *he, uintN flag)  DefaultFreeEntry(void *pool, JSHashEntry *he, uintN flag)
87  {  {
88      if (flag == HT_FREE_ENTRY)      if (flag == HT_FREE_ENTRY)
89          free(he);          js_free(he);
90  }  }
91    
92  static JSHashAllocOps defaultHashAllocOps = {  static JSHashAllocOps defaultHashAllocOps = {
# Line 246  Line 246 
246  }  }
247    
248  JS_PUBLIC_API(JSHashEntry *)  JS_PUBLIC_API(JSHashEntry *)
249  JS_HashTableRawAdd(JSHashTable *ht, JSHashEntry **hep,  JS_HashTableRawAdd(JSHashTable *ht, JSHashEntry **&hep,
250                     JSHashNumber keyHash, const void *key, void *value)                     JSHashNumber keyHash, const void *key, void *value)
251  {  {
252      uint32 n;      uint32 n;

Legend:
Removed from v.460  
changed lines
  Added in v.507

  ViewVC Help
Powered by ViewVC 1.1.24