Commit ae6114c5 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1216 from monaka/pr-code-cleanup-20130426

Code clean-up
parents 478f5c6b 16be58ba
...@@ -340,13 +340,6 @@ typedef enum call_type { ...@@ -340,13 +340,6 @@ typedef enum call_type {
CALL_TYPE_MAX CALL_TYPE_MAX
} call_type; } call_type;
#ifndef ANYARGS
# ifdef __cplusplus
# define ANYARGS ...
# else
# define ANYARGS
# endif
#endif
void mrb_define_alias(mrb_state *mrb, struct RClass *klass, const char *name1, const char *name2); void mrb_define_alias(mrb_state *mrb, struct RClass *klass, const char *name1, const char *name2);
const char *mrb_class_name(mrb_state *mrb, struct RClass* klass); const char *mrb_class_name(mrb_state *mrb, struct RClass* klass);
void mrb_define_global_const(mrb_state *mrb, const char *name, mrb_value val); void mrb_define_global_const(mrb_state *mrb, const char *name, mrb_value val);
......
...@@ -55,7 +55,7 @@ irep_free(size_t sirep, mrb_state *mrb) ...@@ -55,7 +55,7 @@ irep_free(size_t sirep, mrb_state *mrb)
} }
static size_t static size_t
offset_crc_body() offset_crc_body(void)
{ {
struct rite_binary_header header; struct rite_binary_header header;
return ((uint8_t *)header.binary_crc - (uint8_t *)&header) + sizeof(header.binary_crc); return ((uint8_t *)header.binary_crc - (uint8_t *)&header) + sizeof(header.binary_crc);
......
...@@ -171,7 +171,7 @@ mrb_pool_realloc(mrb_pool *pool, void *p, size_t oldlen, size_t newlen) ...@@ -171,7 +171,7 @@ mrb_pool_realloc(mrb_pool *pool, void *p, size_t oldlen, size_t newlen)
#ifdef TEST_POOL #ifdef TEST_POOL
int int
main() main(void)
{ {
int i, len = 250; int i, len = 250;
mrb_pool *pool; mrb_pool *pool;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment