summaryrefslogtreecommitdiffhomepage
path: root/src/pool.c
AgeCommit message (Collapse)Author
2019-10-03Remove duplicates header files in `src/pool.c`dearblue
These are included in `mruby.h`. As a background, if `enable_cxx_abi` is specified, the macro that defines the maximum value in `stdint.h` is undefined depending on the environment. - Confirmed with gcc on FreeBSD 12.0 and mingw32-gcc available on FreeBSD. - `INTPTR_MAX`, `INT64_MAX` and `UINT64_MAX` are defined by `cstdint` added in C++11. But `toolchains :gcc` adds `-std=c++03`, so the macros are not defined. - To have these defined in `C++03`, `__STDC_CONSTANT_MACROS` must be defined in advance. This is already done by `mruby.h`.
2017-09-27fix: src\pool.c(33): warning C4200: nonstandard extension used: zero-sized ↵Tomasz Dąbrowski
array in struct/union
2017-04-21Align pool allocator with 8 byte in 64-bit environment.take_cheeze
To avoid warnings from undefined sanitizer. ( https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html )
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2014-10-28Fix indentJun Hiroe
2014-08-29Fix mismatches for MRB_API declarations.Tatsuhiko Kubo
2014-08-20Fix error handling for mrb_pool_realloc().Tatsuhiko Kubo
mrb_pool_alloc() may return NULL.
2014-03-07pool: use mrb_malloc_simple instead of mrb_malloccremno
2014-03-07MSVC: fix C4146cremno
C4146 (unary minus operator applied to unsigned type, result still unsigned)
2013-07-14Merge pull request #1380 from suzukaze/refactor-pool.cYukihiro "Matz" Matsumoto
Replace 0 with NULL because struct pointer is set NULL in.
2013-07-14Replace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-14Replace 0 with NULL because struct pointer is set NULL in.Jun Hiroe
2013-04-26Add void to function parameters. This is for compatibility with C++Masaki Muranaka
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-26Use C99 flexible array in pool.ckano4
2012-08-13use TRUE/FALSE instead of 1/0Yukihiro Matsumoto
2012-07-31POOL_ALIGNMENT POOL_PAGE_SIZE : Configurable parameters.Masaki Muranaka
2012-07-29Make all(?) void casts explicit for C++Max Anselm
2012-07-13less <stdio.h>Yukihiro Matsumoto
2012-06-28always define POOL_ALIGNMENT (default 4); reduce strength as well; close #333Yukihiro Matsumoto
2012-05-19C++ compilability - don't define types inside othersMitchell Blank Jr
The following is legal code in both C and C++: struct foo { struct bar { int a } x; int y; }; ...however in C++ it defines a type called "foo::bar" instead of "bar". Just avoid this construct altogether
2012-05-19remove src/pool.h; close #163Yukihiro Matsumoto
2012-05-10fix typosasaki takeru
2012-05-07rename ALIGN macrosYukihiro Matsumoto
2012-05-02fixed #86 memory alignment error on ARMYuichiro MASUI
2012-04-30rm whitespaceroco
2012-04-23add file headermimaki
2012-04-20void* does not have its size.NAKAMURA Usaku
2012-04-20add mruby sourcesmimaki