Back to index

lightning-sunbird  0.9+nobinonly
nsRuleNetwork.cpp File Reference
#include "nscore.h"
#include "nsCOMPtr.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIContent.h"
#include "nsRuleNetwork.h"
#include "plhash.h"
#include "nsReadableUtils.h"
#include "prlog.h"

Go to the source code of this file.


static PLDHashNumber PR_CALLBACK HashEntry (PLDHashTable *aTable, const void *aKey)
static PRBool PR_CALLBACK MatchEntry (PLDHashTable *aTable, const PLDHashEntryHdr *aEntry, const void *aKey)
static void PR_CALLBACK ClearEntry (PLDHashTable *aTable, PLDHashEntryHdr *aEntry)

Function Documentation

static void PR_CALLBACK ClearEntry ( PLDHashTable aTable,
PLDHashEntryHdr aEntry 
) [static]

Definition at line 87 of file nsRuleNetwork.cpp.

Here is the call graph for this function:

static PLDHashNumber PR_CALLBACK HashEntry ( PLDHashTable aTable,
const void aKey 
) [static]

Definition at line 72 of file nsRuleNetwork.cpp.

    return nsCRT::HashCode(NS_STATIC_CAST(const PRUnichar*, aKey));
static PRBool PR_CALLBACK MatchEntry ( PLDHashTable aTable,
const PLDHashEntryHdr aEntry,
const void aKey 
) [static]

Definition at line 78 of file nsRuleNetwork.cpp.

    const nsRuleNetwork::SymtabEntry* entry =
        NS_REINTERPRET_CAST(const nsRuleNetwork::SymtabEntry*, aEntry);

    return 0 == nsCRT::strcmp(entry->mSymbol, NS_STATIC_CAST(const PRUnichar*, aKey));