/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* 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> *
* *
***********************************************************************/
/*
* Glenn Fowler
* AT&T Research
*
* hash table library interface definitions
*
* NOTE: new code should use the more general <cdt.h>
*/
#ifndef _HASH_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#endif
#define _HASH_H
#include <hashpart.h>
#define hashgetbucket(s) ((Hash_bucket_t*)((s)-((sizeof(Hash_bucket_t)+sizeof(char*)-1)/sizeof(char*))*sizeof(char*)))
/*
* DEPRECATED renames for compatibility
*/
/*
* the #define's avoid union tags
*/
unsigned int hash; /* hash flags and value */ \
char* name /* key name */
char* value /* key value */
typedef struct /* bucket header */
{
{
};
typedef struct /* hash scan bucket position */
{
#ifdef _HASH_POSITION_PRIVATE_
#endif
typedef struct /* last lookup cache */
{
#ifdef _HASH_LAST_PRIVATE_
#endif
} Hash_last_t;
{
#ifdef _HASH_ROOT_PRIVATE_
#endif
};
{
#ifdef _HASH_TABLE_PRIVATE_
#endif
};
#if _BLD_ast && defined(__EXPORT__)
#endif
extern __MANGLE__ int hashwalk __PROTO__((Hash_table_t*, int, int (*)(const char*, char*, __V_*), __V_*));
#endif