pebblisp/src/hash.h

21 lines
442 B
C

#ifndef PEBBLISP_HASH_H
#define PEBBLISP_HASH_H
#include "object.h"
struct ObjectTable {
size_t count;
size_t capacity;
struct EnvElement* elements;
};
struct ObjectTable buildTable(size_t capacity);
void addToTable(struct ObjectTable* table, char* name, Object object);
struct StrippedObject* getFromTable(struct ObjectTable* table, const char* name);
void deleteTable(struct ObjectTable* table);
#endif //PEBBLISP_HASH_H