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

ruby-changes:3378

From: ko1@a...
Date: 3 Jan 2008 22:21:03 +0900
Subject: [ruby-changes:3378] akr - Ruby:r14871 (trunk): * include/ruby/ruby.h (st_strcasecmp): declared for STRCASECMP.

akr	2008-01-03 21:57:26 +0900 (Thu, 03 Jan 2008)

  New Revision: 14871

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h

  Log:
    * include/ruby/ruby.h (st_strcasecmp): declared for STRCASECMP.
      (st_strncasecmp): declared for STRNCASECMP.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/ruby.h?r1=14871&r2=14870&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14871&r2=14870&diff_format=u

Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 14870)
+++ include/ruby/ruby.h	(revision 14871)
@@ -961,13 +961,6 @@
 		       VALUE data);
 int rb_remove_event_hook(rb_event_hook_func_t func);
 
-#if defined(__cplusplus)
-#if 0
-{ /* satisfy cc-mode */
-#endif
-}  /* extern "C" { */
-#endif
-
 /* locale insensitive functions */
 
 #define rb_isascii(c) ((unsigned long)(c) < 128)
@@ -1000,10 +993,19 @@
 #endif
 #define TOUPPER(c) rb_toupper((unsigned char)c)
 #define TOLOWER(c) rb_tolower((unsigned char)c)
+
+int st_strcasecmp(const char *s1, const char *s2);
+int st_strncasecmp(const char *s1, const char *s2, size_t n);
 #define STRCASECMP(s1, s2) (st_strcasecmp(s1, s2))
 #define STRNCASECMP(s1, s2, n) (st_strncasecmp(s1, s2, n))
 
 unsigned long ruby_strtoul(const char *str, char **endptr, int base);
 #define STRTOUL(str, endptr, base) (ruby_strtoul(str, endptr, base))
 
+#if defined(__cplusplus)
+#if 0
+{ /* satisfy cc-mode */
+#endif
+}  /* extern "C" { */
+#endif
 #endif /* RUBY_H */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14870)
+++ ChangeLog	(revision 14871)
@@ -1,3 +1,8 @@
+Thu Jan  3 21:56:07 2008  Tanaka Akira  <akr@f...>
+
+	* include/ruby/ruby.h (st_strcasecmp): declared for STRCASECMP.
+	  (st_strncasecmp): declared for STRNCASECMP.
+
 Thu Jan  3 20:24:48 2008  Koichi Sasada  <ko1@a...>
 
 	* eval_jump.c (rb_f_catch): Resotre cfp if catched thrown object.

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

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