[前][次][番号順一覧][スレッド一覧]

ruby-changes:23509

From: nobu <ko1@a...>
Date: Mon, 7 May 2012 14:11:58 +0900 (JST)
Subject: [ruby-changes:23509] nobu:r35560 (trunk): ext/json/fbuffer/fbuffer.h

nobu	2012-05-07 14:11:45 +0900 (Mon, 07 May 2012)

  New Revision: 35560

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35560

  Log:
    ext/json/fbuffer/fbuffer.h
    
    * ext/json/fbuffer/fbuffer.h: comment-out unused functions.
    
    * ext/json/parser/depend: add dependency.

  Modified files:
    trunk/ext/json/fbuffer/fbuffer.h
    trunk/ext/json/parser/depend

Index: ext/json/fbuffer/fbuffer.h
===================================================================
--- ext/json/fbuffer/fbuffer.h	(revision 35559)
+++ ext/json/fbuffer/fbuffer.h	(revision 35560)
@@ -35,10 +35,14 @@
 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 @@
     }
 }
 
+#if 0
 static void fbuffer_append_str(FBuffer *fb, VALUE str)
 {
     const char *newstr = StringValuePtr(str);
@@ -97,6 +102,7 @@
 
     RB_GC_GUARD(str);
 }
+#endif
 
 static void fbuffer_append_char(FBuffer *fb, char newchr)
 {
@@ -105,6 +111,7 @@
     fb->len++;
 }
 
+#if 0
 static void freverse(char *start, char *end)
 {
     char c;
@@ -155,3 +162,4 @@
     return result;
 }
 #endif
+#endif
Index: ext/json/parser/depend
===================================================================
--- ext/json/parser/depend	(revision 35559)
+++ ext/json/parser/depend	(revision 35560)
@@ -1 +1 @@
-parser.o: parser.c parser.h
+parser.o: parser.c parser.h ../fbuffer/fbuffer.h

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]