46 "$Id: hash.c,v 1.9.2.3 1999/04/09 17:39:41 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
51 static __inline
int do_hash PROTO ((
unsigned char *,
int,
int));
68 register int accum = 0;
69 register unsigned char *
s =
name;
76 accum = (accum & 255) + (accum >> 8);
100 warn (
"Can't add %s to hash table.",
name);
107 table -> buckets [hashno] = bp;
127 for (bp =
table -> buckets [hashno]; bp; bp = bp ->
next) {
153 return (
unsigned char *)0;
160 for (bp =
table -> buckets [hashno]; bp; bp = bp ->
next) {
164 return (
unsigned char *)0;
struct hash_bucket * buckets[DEFAULT_HASH_SIZE]
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
GLsizei const GLvoid * pointer
void delete_hash_entry(struct hash_table *table, unsigned char *name, int len)
struct hash_table * new_hash_table(int count)
struct hash_table * new_hash()
GLenum GLsizei GLenum GLenum const GLvoid * table
#define DEFAULT_HASH_SIZE
unsigned char * hash_lookup(struct hash_table *table, unsigned char *name, int len)
static __inline int do_hash(unsigned char *name, int len, int size)
void free_hash_bucket(struct hash_bucket *ptr, char *name)
GLsizei const GLfloat * value
static unsigned __int64 next
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void add_hash(struct hash_table *table, unsigned char *name, int len, unsigned char *pointer)
static __inline int do_hash PROTO((unsigned char *, int, int))
int strcmp(const char *String1, const char *String2)
struct hash_bucket * new_hash_bucket(void)
GLuint const GLchar * name