hash.h
651 Bytes
#ifndef __DYNTYPE_HASH_H__
#define __DYNTYPE_HASH_H__
#include <sys/types.h>
#include "cclass.h"
#include "dyntype.h"
struct DYNTYPE_HASH {
const struct CCLASS * const class;
char ** keys;
struct DYNTYPE ** values;
size_t size;
size_t used;
};
extern const struct CCLASS * const DYNTYPE_HASH;
void dyntype_hash_set(struct DYNTYPE_HASH * _this,
const char * key,
struct DYNTYPE * value);
struct DYNTYPE *
dyntype_hash_get(struct DYNTYPE_HASH * _this, const char * key);
struct DYNTYPE *
dyntype_hash_del(struct DYNTYPE_HASH * _this, const char * key);
#endif//__DYNTYPE_HASH_H__
// vim: set et ts=4 sw=4: