/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* hash table library private definitions
*/
#ifndef _HASHLIB_H
#define _HASHLIB_H
#include <ast.h>
typedef int (*Hash_compare_f)(const char*, const char*, ...);
typedef unsigned int (*Hash_hash_f)(const char*, ...);
typedef void (*Hash_free_f)(void*);
typedef struct /* root local pointers */
{
} Hash_local_t;
#define _HASH_POSITION_PRIVATE_ \
int flags; /* scan flags */ \
#define _HASH_LAST_PRIVATE_ \
const char* name; /* last lookup name */ \
unsigned int hash; /* last lookup hash */
#define _HASH_ROOT_PRIVATE_ \
int namesize; /* fixed name size: 0 => string */ \
int meanchain; /* resize mean chain length */ \
#define _HASH_TABLE_PRIVATE_ \
unsigned char frozen; /* table freeze nesting */ \
unsigned char bucketsize; /* min bucket size in char*'s */ \
#include <hash.h>
#define HASH(r,n,h) if (r->local->hash) h = r->namesize ? (*r->local->hash)(n, r->namesize) : (*r->local->hash)(n);\
else\
{\
register const char* _hash_s1 = n;\
h = 0;\
if (r->namesize)\
{\
}\
}
typedef struct /* library private info */
{
} Hash_info_t;
extern Hash_info_t hash_info;
#endif