summaryrefslogtreecommitdiff
path: root/ext/json/fbuffer
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/fbuffer')
-rw-r--r--ext/json/fbuffer/fbuffer.h8
1 files changed, 8 insertions, 0 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