Make struct operhash_entry private.

This commit is contained in:
Jilles Tjoelker 2010-03-01 01:24:00 +01:00
parent a0f4c418d3
commit cf06f92b78
2 changed files with 6 additions and 6 deletions

View File

@ -1,12 +1,6 @@
#ifndef INCLUDED_operhash_h #ifndef INCLUDED_operhash_h
#define INCLUDED_operhash_h #define INCLUDED_operhash_h
struct operhash_entry
{
char *name;
int refcount;
};
void init_operhash(void); void init_operhash(void);
const char *operhash_add(const char *name); const char *operhash_add(const char *name);
const char *operhash_find(const char *name); const char *operhash_find(const char *name);

View File

@ -41,6 +41,12 @@
#define hash_opername(x) fnv_hash_upper((const unsigned char *)(x), OPERHASH_MAX_BITS) #define hash_opername(x) fnv_hash_upper((const unsigned char *)(x), OPERHASH_MAX_BITS)
struct operhash_entry
{
char *name;
int refcount;
};
static rb_dlink_list operhash_table[OPERHASH_MAX]; static rb_dlink_list operhash_table[OPERHASH_MAX];
const char * const char *