new (hdr) CompareCacheHashEntry(); CompareCacheHashEntry *entry = NS_STATIC_CAST(CompareCacheHashEntry*, hdr); entry->key = (void*)key;
new (hdr) CompareCacheHashEntryPtr(); CompareCacheHashEntryPtr *entryPtr = NS_STATIC_CAST(CompareCacheHashEntryPtr*, hdr); if (!entryPtr->entry) { return PR_FALSE; } entryPtr->entry->key = (void*)key;
CompareCacheInitEntry(PLDHashTable *table, PLDHashEntryHdr *hdr,                     const void *key){  new (hdr) CompareCacheHashEntry();  CompareCacheHashEntry *entry = NS_STATIC_CAST(CompareCacheHashEntry*, hdr);  entry->key = (void*)key;  return PR_TRUE;}