Synchronize pldhash with recent changes to jsdhash by rerunning through plify_jsdhash.sed.

This commit is contained in:
L. David Baron 2009-01-10 08:28:16 -08:00
parent ae3e598878
commit ef141b8d52
2 changed files with 11 additions and 15 deletions

View File

@ -68,7 +68,7 @@
*/
#ifdef DEBUG
#define JSDHASH_SINGLE_LINE_ASSERTION PR_ASSERT
#define JSDHASH_ONELINE_ASSERT PR_ASSERT
#define RECURSION_LEVEL(table_) (*(PRUint32*)(table_->entryStore + \
PL_DHASH_TABLE_SIZE(table_) * \
table_->entrySize))
@ -78,10 +78,10 @@
PR_BEGIN_MACRO \
++RECURSION_LEVEL(table_); \
PR_END_MACRO
#define DECREMENT_RECURSION_LEVEL(table_) \
PR_BEGIN_MACRO \
#define DECREMENT_RECURSION_LEVEL(table_) \
PR_BEGIN_MACRO \
NS_ASSERTION(RECURSION_LEVEL(table_) > 0, "RECURSION_LEVEL(table_) > 0"); \
--RECURSION_LEVEL(table_); \
--RECURSION_LEVEL(table_); \
PR_END_MACRO
#else

View File

@ -256,9 +256,8 @@ typedef PLDHashNumber
* Return PR_TRUE if keys match, PR_FALSE otherwise.
*/
typedef PRBool
(* PLDHashMatchEntry)(PLDHashTable *table,
const PLDHashEntryHdr *entry,
const void *key);
(* PLDHashMatchEntry)(PLDHashTable *table, const PLDHashEntryHdr *entry,
const void *key);
/*
* Copy the data starting at from to the new entry storage at to. Do not add
@ -267,8 +266,7 @@ typedef PRBool
* any reference-decrementing callback shortly.
*/
typedef void
(* PLDHashMoveEntry)(PLDHashTable *table,
const PLDHashEntryHdr *from,
(* PLDHashMoveEntry)(PLDHashTable *table, const PLDHashEntryHdr *from,
PLDHashEntryHdr *to);
/*
@ -277,8 +275,7 @@ typedef void
* but only if the given key is found in the table.
*/
typedef void
(* PLDHashClearEntry)(PLDHashTable *table,
PLDHashEntryHdr *entry);
(* PLDHashClearEntry)(PLDHashTable *table, PLDHashEntryHdr *entry);
/*
* Called when a table (whether allocated dynamically by itself, or nested in
@ -296,8 +293,7 @@ typedef void
* table.
*/
typedef PRBool
(* PLDHashInitEntry)(PLDHashTable *table,
PLDHashEntryHdr *entry,
(* PLDHashInitEntry)(PLDHashTable *table, PLDHashEntryHdr *entry,
const void *key);
/*
@ -575,8 +571,8 @@ PL_DHashTableRawRemove(PLDHashTable *table, PLDHashEntryHdr *entry);
* the entry being enumerated, rather than returning PL_DHASH_REMOVE.
*/
typedef PLDHashOperator
(* PLDHashEnumerator)(PLDHashTable *table, PLDHashEntryHdr *hdr,
PRUint32 number, void *arg);
(* PLDHashEnumerator)(PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number,
void *arg);
NS_COM_GLUE PRUint32
PL_DHashTableEnumerate(PLDHashTable *table, PLDHashEnumerator etor, void *arg);