Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
hashops.c File Reference
#include "base.h"

Go to the source code of this file.

Functions

static void *PR_CALLBACK nss_arena_hash_alloc_table (void *pool, PRSize size)
static void PR_CALLBACK nss_arena_hash_free_table (void *pool, void *item)
static PLHashEntry *PR_CALLBACK nss_arena_hash_alloc_entry (void *pool, const void *key)
static void PR_CALLBACK nss_arena_hash_free_entry (void *pool, PLHashEntry *he, PRUintn flag)

Variables

NSS_IMPLEMENT_DATA PLHashAllocOps nssArenaHashAllocOps

Function Documentation

static PLHashEntry* PR_CALLBACK nss_arena_hash_alloc_entry ( void pool,
const void key 
) [static]

Definition at line 83 of file hashops.c.

{
  NSSArena *arena = NULL;

#ifdef NSSDEBUG
  if( (void *)NULL != arena ) {
    if( PR_SUCCESS != nssArena_verifyPointer(arena) ) {
      return (void *)NULL;
    }
  }
#endif /* NSSDEBUG */

  return nss_ZNEW(arena, PLHashEntry);
}
static void* PR_CALLBACK nss_arena_hash_alloc_table ( void pool,
PRSize  size 
) [static]

Definition at line 53 of file hashops.c.

{
  NSSArena *arena = (NSSArena *)NULL;

#ifdef NSSDEBUG
  if( (void *)NULL != arena ) {
    if( PR_SUCCESS != nssArena_verifyPointer(arena) ) {
      return (void *)NULL;
    }
  }
#endif /* NSSDEBUG */

  return nss_ZAlloc(arena, size);
}

Here is the call graph for this function:

static void PR_CALLBACK nss_arena_hash_free_entry ( void pool,
PLHashEntry he,
PRUintn  flag 
) [static]

Definition at line 103 of file hashops.c.

{
  if( HT_FREE_ENTRY == flag ) {
    (void)nss_ZFreeIf(he);
  }
}

Here is the call graph for this function:

static void PR_CALLBACK nss_arena_hash_free_table ( void pool,
void item 
) [static]

Definition at line 73 of file hashops.c.

{
  (void)nss_ZFreeIf(item);
}

Here is the call graph for this function:


Variable Documentation