Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

char_xhash.c File Reference

hashing table for char* key value pairs (xhash_tmpl-adapter). More...

#include "common.h"
#include <string.h>
#include <ctype.h>
#include "char_xhash.h"
#include "xhash_tmpl_c.inc"

Include dependency graph for char_xhash.c:

Include dependency graph

Go to the source code of this file.

Defines

#define XH_CALC_HASH_VAL(key, size)   ( (size_t)tolower(key[0]) - (size_t)'a' )
 define a rule to calculate a hash value.

#define XH_KEYS_EQUAL(a, b)   (strcmp(a, b) == 0)
 define a rule to compare two keys.

#define XH_INVALID   NULL
 tell the hash table how an error indicator looks like.

#define XH_COPY_KEY(dest, source)
 define a way to copy keys. More...

#define XH_FREE_KEY(a)   pd_free(a)
 define a way to free keys.

#define XH_COPY_CARGO(dest, source)
 define a way to copy keys. More...

#define XH_FREE_CARGO(a)   pd_free(a)
 define a way to free keys.


Detailed Description

hashing table for char* key value pairs (xhash_tmpl-adapter).

Definition in file char_xhash.c.


Define Documentation

#define XH_COPY_CARGO dest,
source   
 

Value:

{ \
                                      dest = (XH_CARGO) pd_malloc(strlen(source)+1);\
                                      strcpy(dest, source); \
                                    }
define a way to copy keys.

Definition at line 59 of file char_xhash.c.

#define XH_COPY_KEY dest,
source   
 

Value:

{ \
                                    dest = (XH_KEY) pd_malloc(strlen(source)+1);\
                                    strcpy(dest, source); \
                                  }
define a way to copy keys.

Definition at line 46 of file char_xhash.c.


Generated on Fri Jan 25 22:40:35 2002 for PDepp Webserver by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001