Skip to content

Commit

Permalink
Merge pull request #1216 from monaka/pr-code-cleanup-20130426
Browse files Browse the repository at this point in the history
Code clean-up
  • Loading branch information
matz committed Apr 26, 2013
2 parents 478f5c6 + 16be58b commit ae6114c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions include/mruby.h
Expand Up @@ -340,13 +340,6 @@ typedef enum call_type {
CALL_TYPE_MAX
} 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);
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);
Expand Down
2 changes: 1 addition & 1 deletion src/load.c
Expand Up @@ -55,7 +55,7 @@ irep_free(size_t sirep, mrb_state *mrb)
}

static size_t
offset_crc_body()
offset_crc_body(void)
{
struct rite_binary_header header;
return ((uint8_t *)header.binary_crc - (uint8_t *)&header) + sizeof(header.binary_crc);
Expand Down
2 changes: 1 addition & 1 deletion src/pool.c
Expand Up @@ -171,7 +171,7 @@ mrb_pool_realloc(mrb_pool *pool, void *p, size_t oldlen, size_t newlen)

#ifdef TEST_POOL
int
main()
main(void)
{
int i, len = 250;
mrb_pool *pool;
Expand Down

0 comments on commit ae6114c

Please sign in to comment.