Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.594 kb
/**
* hash.h
* Lake Scheme
*
* Copyright 2011 Sami Samhuri
* MIT License
*
* Lifted from TJ Holowaychuk's Luna.
* https://raw.github.com/visionmedia/luna
*
*/
#ifndef _LAKE_HASH_H
#define _LAKE_HASH_H
#include "khash.h"
#include "common.h"
KHASH_MAP_INIT_STR(value, void *);
typedef khash_t(value) lake_hash_t;
#define lake_hash_make() kh_init(value)
#define lake_hash_free(h) kh_destroy(value, h)
bool lake_hash_has(khash_t(value) *h, char *key);
void lake_hash_put(khash_t(value) *h, char *key, void *val);
void *lake_hash_get(khash_t(value) *h, char *key);
#endif
Jump to Line
Something went wrong with that request. Please try again.