summaryrefslogtreecommitdiffhomepage
path: root/src/pool.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-19 16:56:15 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-19 16:56:15 +0900
commit59da9f6974d1f239bc783dcd2cb0640ced6d0030 (patch)
tree5048b28c6f753cf3b18dd2ba8e5ef3f3c90e0c97 /src/pool.c
parent04cafb7fb325dcdd7009fe32c84473380b5069bf (diff)
downloadmruby-59da9f6974d1f239bc783dcd2cb0640ced6d0030.tar.gz
mruby-59da9f6974d1f239bc783dcd2cb0640ced6d0030.zip
remove src/pool.h; close #163
Diffstat (limited to 'src/pool.c')
-rw-r--r--src/pool.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/pool.c b/src/pool.c
index 649790b2d..a367a30a5 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -4,9 +4,21 @@
** See Copyright Notice in mruby.h
*/
-#include "pool.h"
+#include "mruby.h"
+#include <stddef.h>
#include <string.h>
+struct mrb_pool {
+ mrb_state *mrb;
+ struct mrb_pool_page {
+ struct mrb_pool_page *next;
+ size_t offset;
+ size_t len;
+ void *last;
+ char page[1];
+ } *pages;
+};
+
#undef TEST_POOL
#ifdef TEST_POOL
#include <stdio.h>