mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1216 from monaka/pr-code-cleanup-20130426
Code clean-up
This commit is contained in:
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user