arena.h
上传用户:shmaik
上传日期:2014-06-01
资源大小:45093k
文件大小:1k
- /* $Id: H:/drh/idioms/book/RCS/arena.doc,v 1.10 1997/02/21 19:45:19 drh Exp $ */
- #ifndef ARENA_INCLUDED
- #define ARENA_INCLUDED
- #include "except.h"
- #define T Arena_T
- typedef struct T *T;
- extern const Except_T Arena_NewFailed;
- extern const Except_T Arena_Failed;
- extern T Arena_new (void);
- extern void Arena_dispose(T *ap);
- extern void *Arena_alloc (T arena, long nbytes,
- const char *file, int line);
- extern void *Arena_calloc(T arena, long count,
- long nbytes, const char *file, int line);
- extern void Arena_free (T arena);
- #undef T
- #endif