diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-07 05:11:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-07 05:11:45 +0000 |
commit | 0bd56268cbb79343be10923ebbf3f2d0655b2ccc (patch) | |
tree | 272f1358c5cbae0f6508727a991e9486dc9a1941 /ext | |
parent | 0be8f819218c3244f011e52f26bdf41c69a993ed (diff) |
ext/json/fbuffer/fbuffer.h
* ext/json/fbuffer/fbuffer.h: comment-out unused functions.
* ext/json/parser/depend: add dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/fbuffer/fbuffer.h | 8 | ||||
-rw-r--r-- | ext/json/parser/depend | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ext/json/fbuffer/fbuffer.h b/ext/json/fbuffer/fbuffer.h index 47e0c07004..a03968a4fc 100644 --- a/ext/json/fbuffer/fbuffer.h +++ b/ext/json/fbuffer/fbuffer.h @@ -35,10 +35,14 @@ static FBuffer *fbuffer_alloc(unsigned long initial_length); static void fbuffer_free(FBuffer *fb); static void fbuffer_clear(FBuffer *fb); static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned long len); +#if 0 static void fbuffer_append_long(FBuffer *fb, long number); +#endif static void fbuffer_append_char(FBuffer *fb, char newchr); +#if 0 static FBuffer *fbuffer_dup(FBuffer *fb); static VALUE fbuffer_to_s(FBuffer *fb); +#endif static FBuffer *fbuffer_alloc(unsigned long initial_length) { @@ -88,6 +92,7 @@ static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned long len) } } +#if 0 static void fbuffer_append_str(FBuffer *fb, VALUE str) { const char *newstr = StringValuePtr(str); @@ -97,6 +102,7 @@ static void fbuffer_append_str(FBuffer *fb, VALUE str) RB_GC_GUARD(str); } +#endif static void fbuffer_append_char(FBuffer *fb, char newchr) { @@ -105,6 +111,7 @@ static void fbuffer_append_char(FBuffer *fb, char newchr) fb->len++; } +#if 0 static void freverse(char *start, char *end) { char c; @@ -155,3 +162,4 @@ static VALUE fbuffer_to_s(FBuffer *fb) return result; } #endif +#endif diff --git a/ext/json/parser/depend b/ext/json/parser/depend index 5eaf6dd040..1ea7e80947 100644 --- a/ext/json/parser/depend +++ b/ext/json/parser/depend @@ -1 +1 @@ -parser.o: parser.c parser.h +parser.o: parser.c parser.h ../fbuffer/fbuffer.h |