Apache HTTPD
Classes | Macros | Typedefs | Functions
apr_hash.c File Reference
#include "apr_private.h"
#include "apr_general.h"
#include "apr_pools.h"
#include "apr_time.h"
#include "apr_hash.h"

Go to the source code of this file.

Classes

struct  apr_hash_entry_t
 
struct  apr_hash_index_t
 
struct  apr_hash_t
 

Macros

#define INITIAL_MAX   15 /* tunable == 2^n - 1 */
 

Typedefs

typedef struct apr_hash_entry_t apr_hash_entry_t
 

Functions

static apr_hash_entry_t ** alloc_array (apr_hash_t *ht, unsigned int max)
 
 APR_DECLARE (apr_hash_t *)
 
 APR_DECLARE (apr_hash_index_t *)
 
 APR_DECLARE (void)
 
 APR_DECLARE (const void *)
 
 APR_DECLARE (apr_ssize_t)
 
 APR_DECLARE (void *)
 
static void expand_array (apr_hash_t *ht)
 
static unsigned int hashfunc_default (const char *char_key, apr_ssize_t *klen, unsigned int hash)
 
 APR_DECLARE_NONSTD (unsigned int)
 
static apr_hash_entry_t ** find_entry (apr_hash_t *ht, const void *key, apr_ssize_t klen, const void *val)
 
 APR_DECLARE (unsigned int)
 
 APR_DECLARE (int)
 
 APR_DECLARE (apr_pool_t *)
 

Macro Definition Documentation

◆ INITIAL_MAX

#define INITIAL_MAX   15 /* tunable == 2^n - 1 */

Definition at line 84 of file apr_hash.c.

Typedef Documentation

◆ apr_hash_entry_t

Definition at line 45 of file apr_hash.c.

Function Documentation

◆ alloc_array()

static apr_hash_entry_t ** alloc_array ( apr_hash_t ht,
unsigned int  max 
)
static

Definition at line 91 of file apr_hash.c.

◆ APR_DECLARE() [1/2]

APR_DECLARE ( apr_hash_index_t )

Definition at line 127 of file apr_hash.c.

◆ APR_DECLARE() [2/2]

APR_DECLARE ( apr_hash_t )

Definition at line 96 of file apr_hash.c.

◆ APR_DECLARE_NONSTD()

APR_DECLARE_NONSTD ( unsigned int  )

Definition at line 270 of file apr_hash.c.

◆ expand_array()

static void expand_array ( apr_hash_t ht)
static

Definition at line 193 of file apr_hash.c.

◆ find_entry()

static apr_hash_entry_t ** find_entry ( apr_hash_t ht,
const void *  key,
apr_ssize_t  klen,
const void *  val 
)
static

Definition at line 285 of file apr_hash.c.

◆ hashfunc_default()

static unsigned int hashfunc_default ( const char char_key,
apr_ssize_t klen,
unsigned int  hash 
)
static

Definition at line 210 of file apr_hash.c.