Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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
  • Loading branch information
nobu committed May 7, 2012
commit 47ad6882ec8e3e2db59f6e9d3a711a6c5776a702
8 changes: 8 additions & 0 deletions ext/json/fbuffer/fbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand All @@ -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)
{
Expand All @@ -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;
Expand Down Expand Up @@ -155,3 +162,4 @@ static VALUE fbuffer_to_s(FBuffer *fb)
return result;
}
#endif
#endif
2 changes: 1 addition & 1 deletion ext/json/parser/depend
Original file line number Diff line number Diff line change
@@ -1 +1 @@
parser.o: parser.c parser.h
parser.o: parser.c parser.h ../fbuffer/fbuffer.h