Added regex backend, does not compile

This commit is contained in:
Dan Hirsch 2013-01-13 17:01:10 +01:00
parent ca8751bcfe
commit b8314f6662
6 changed files with 206 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#define HAMMER_ALLOCATOR__H__
#include <sys/types.h>
// TODO(thequux): Turn this into an "HAllocatorVtable", and add a wrapper that also takes an environment pointer.
typedef struct HAllocator_ {
void* (*alloc)(struct HAllocator_* allocator, size_t size);
void* (*realloc)(struct HAllocator_* allocator, void* ptr, size_t size);