summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-04 23:29:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-04 23:29:24 +0000
commitba0655ebdd31e5e6b9ae8ede328733067a68dcbc (patch)
tree70110dc331553c9f3ff47a9ab3b479ab56b7090e /ext/json
parent5540c1de81f69e160c2302e56e4957147f240450 (diff)
ext: protoize no-arguments functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/generator/generator.h2
-rw-r--r--ext/json/parser/parser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/generator/generator.h b/ext/json/generator/generator.h
index b58cc4b..db885d4 100644
--- a/ext/json/generator/generator.h
+++ b/ext/json/generator/generator.h
@@ -109,7 +109,7 @@ static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self);
static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self);
static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self);
static void State_free(JSON_Generator_State *state);
-static JSON_Generator_State *State_allocate();
+static JSON_Generator_State *State_allocate(void);
static VALUE cState_s_allocate(VALUE klass);
static VALUE cState_configure(VALUE self, VALUE opts);
static VALUE cState_to_h(VALUE self);
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h
index b192064..d600037 100644
--- a/ext/json/parser/parser.h
+++ b/ext/json/parser/parser.h
@@ -68,7 +68,7 @@ static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *resu
static VALUE convert_encoding(VALUE source);
static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self);
static VALUE cParser_parse(VALUE self);
-static JSON_Parser *JSON_allocate();
+static JSON_Parser *JSON_allocate(void);
static void JSON_mark(JSON_Parser *json);
static void JSON_free(JSON_Parser *json);
static VALUE cJSON_parser_s_allocate(VALUE klass);