Mercurial > repo
view src/ploki/variable.h @ 12220:7eaf71f23fbe draft
<oerjan> learn \xce\xbe\xcf\x80\xce\xb1\xce\xbb\xce\xb1\xce\xb9\xce\xbf\xce\xbb\xcf\x8c\xce\xb3\xce\xbf\xcf\x82 is kspalaiologos\'s Ancient Greek twin. He was banned from the theater for making up invalid characters.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 01 Dec 2019 02:35:07 +0000 |
parents | ac0403686959 |
children |
line wrap: on
line source
#ifndef VARIABLE_H_ #define VARIABLE_H_ #include "config.h" #include "strhash.h" #include <stddef.h> typedef size_t t_vr_cookie; #define VR_NO_COOKIE ((size_t)-1) typedef struct { void **data; size_t size, length; t_strhash *hash; void (*del)(void *); } t_vr_container; t_vr_container *vr_new(void (*)(void *)); void vr_delete(t_vr_container *); t_vr_cookie vr_exists(const t_vr_container *, const char *, size_t); t_vr_cookie vr_register(t_vr_container *, const char *, size_t, void *); void vr_freeze(t_vr_container *); ATTR_PURE void *vr_data(const t_vr_container *, t_vr_cookie); #if !DEBUG_P #define vr_data(vc, c) ((vc)->data[c]) #endif #endif /* VARIABLE_H_ */