From 8705905e9b555b0f8e7a6e0c22e4b1093bb1690c Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Sat, 10 Jan 2009 08:28:16 -0800 Subject: [PATCH] Synchronize pldhash with recent changes to jsdhash by rerunning through plify_jsdhash.sed. --- xpcom/glue/pldhash.c | 8 ++++---- xpcom/glue/pldhash.h | 18 +++++++----------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/xpcom/glue/pldhash.c b/xpcom/glue/pldhash.c index c1a04ae76764..d14b757bc827 100644 --- a/xpcom/glue/pldhash.c +++ b/xpcom/glue/pldhash.c @@ -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 diff --git a/xpcom/glue/pldhash.h b/xpcom/glue/pldhash.h index f118f83f3824..3715f4564125 100644 --- a/xpcom/glue/pldhash.h +++ b/xpcom/glue/pldhash.h @@ -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);