mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
compile.h: change struct mrb_mempool to mrb_mempool
So that compatibility layer can be used without macro definition.
This commit is contained in:
@@ -123,7 +123,7 @@ struct mrb_parser_heredoc_info {
|
||||
/* parser structure */
|
||||
struct mrb_parser_state {
|
||||
mrb_state *mrb;
|
||||
struct mrb_mempool *pool;
|
||||
mrb_mempool *pool;
|
||||
mrb_ast_node *cells;
|
||||
const char *s, *send;
|
||||
#ifndef MRB_NO_STDIO
|
||||
|
||||
@@ -12,7 +12,7 @@ MRB_API void* mempool_alloc(struct mempool*, size_t);
|
||||
MRB_API void* mempool_realloc(struct mempool*, void*, size_t oldlen, size_t newlen);
|
||||
|
||||
/* compatibility layer */
|
||||
#define mrb_mempool mempool
|
||||
typedef struct mempool mrb_mempool;
|
||||
#define mrb_mempool_open(m) mempool_open()
|
||||
#define mrb_mempool_close(m) mempool_close(m)
|
||||
#define mrb_mempool_alloc(m, size) mempool_alloc((m),(size))
|
||||
|
||||
Reference in New Issue
Block a user