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

ruby-changes:16776

From: nobu <ko1@a...>
Date: Wed, 28 Jul 2010 17:17:11 +0900 (JST)
Subject: [ruby-changes:16776] Ruby:r28771 (ruby_1_8, trunk): * missing/*.c: include missing.h

nobu	2010-07-28 17:12:01 +0900 (Wed, 28 Jul 2010)

  New Revision: 28771

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

  Log:
    * missing/*.c: include missing.h

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/missing/acosh.c
    branches/ruby_1_8/missing/crypt.c
    branches/ruby_1_8/missing/erf.c
    branches/ruby_1_8/missing/finite.c
    branches/ruby_1_8/missing/hypot.c
    branches/ruby_1_8/missing/isnan.c
    branches/ruby_1_8/missing/memcmp.c
    branches/ruby_1_8/missing/memmove.c
    branches/ruby_1_8/missing/strcasecmp.c
    branches/ruby_1_8/missing/strchr.c
    branches/ruby_1_8/missing/strerror.c
    branches/ruby_1_8/missing/strncasecmp.c
    branches/ruby_1_8/missing/strstr.c
    branches/ruby_1_8/missing/strtol.c
    branches/ruby_1_8/missing/strtoul.c
    branches/ruby_1_8/missing/vsnprintf.c
    branches/ruby_1_8/missing.h
    branches/ruby_1_8/version.h
    trunk/ChangeLog
    trunk/missing/cbrt.c
    trunk/missing/close.c
    trunk/missing/crypt.c
    trunk/missing/erf.c
    trunk/missing/finite.c
    trunk/missing/hypot.c
    trunk/missing/isnan.c
    trunk/missing/langinfo.c
    trunk/missing/lgamma_r.c
    trunk/missing/memcmp.c
    trunk/missing/memmove.c
    trunk/missing/strchr.c
    trunk/missing/strerror.c
    trunk/missing/strlcat.c
    trunk/missing/strlcpy.c
    trunk/missing/strstr.c
    trunk/missing/strtol.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28770)
+++ ChangeLog	(revision 28771)
@@ -1,3 +1,7 @@
+Wed Jul 28 17:11:48 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* missing/*.c: include missing.h
+
 Wed Jul 28 09:38:03 2010  NAKAMURA Usaku  <usa@r...>
 
 	* cont.c: typos.
Index: missing/strlcpy.c
===================================================================
--- missing/strlcpy.c	(revision 28770)
+++ missing/strlcpy.c	(revision 28771)
@@ -31,6 +31,7 @@
 static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
 #endif /* LIBC_SCCS and not lint */
 
+#include "ruby/missing.h"
 #include <sys/types.h>
 #include <string.h>
 
Index: missing/strstr.c
===================================================================
--- missing/strstr.c	(revision 28770)
+++ missing/strstr.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of strstr(3) */
 
+#include "ruby/missing.h"
+
 char *
 strstr(const char *haystack, const char *needle)
 {
Index: missing/crypt.c
===================================================================
--- missing/crypt.c	(revision 28770)
+++ missing/crypt.c	(revision 28771)
@@ -34,6 +34,7 @@
 static char sccsid[] = "@(#)crypt.c	8.1 (Berkeley) 6/4/93";
 #endif /* LIBC_SCCS and not lint */
 
+#include "ruby/missing.h"
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
Index: missing/hypot.c
===================================================================
--- missing/hypot.c	(revision 28770)
+++ missing/hypot.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of hypot */
 
+#include "ruby/missing.h"
 #include <math.h>
 
 double hypot(double x, double y)
Index: missing/strchr.c
===================================================================
--- missing/strchr.c	(revision 28770)
+++ missing/strchr.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of strchr(3) and strrchr(3) */
 
+#include "ruby/missing.h"
+
 char *
 strchr(const char *s, int c)
 {
Index: missing/memmove.c
===================================================================
--- missing/memmove.c	(revision 28770)
+++ missing/memmove.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of memcmp(3) */
 
+#include "ruby/missing.h"
 #include <stddef.h>
 
 void *
Index: missing/close.c
===================================================================
--- missing/close.c	(revision 28770)
+++ missing/close.c	(revision 28771)
@@ -1,4 +1,5 @@
 /* Ignore ECONNRESET of FreeBSD */
+#include "ruby/missing.h"
 #include <errno.h>
 #include <unistd.h>
 #include <sys/types.h>
Index: missing/isnan.c
===================================================================
--- missing/isnan.c	(revision 28770)
+++ missing/isnan.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of isnan(3) */
 
+#include "ruby/missing.h"
+
 static int double_ne(double n1, double n2);
 
 int
Index: missing/strlcat.c
===================================================================
--- missing/strlcat.c	(revision 28770)
+++ missing/strlcat.c	(revision 28771)
@@ -31,6 +31,7 @@
 static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $";
 #endif /* LIBC_SCCS and not lint */
 
+#include "ruby/missing.h"
 #include <sys/types.h>
 #include <string.h>
 
Index: missing/erf.c
===================================================================
--- missing/erf.c	(revision 28770)
+++ missing/erf.c	(revision 28771)
@@ -3,6 +3,7 @@
 reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
             (New Algorithm handbook in C language) (Gijyutsu hyouron
             sha, Tokyo, 1991) p.227 [in Japanese]                 */
+#include "ruby/missing.h"
 #include <stdio.h>
 #include <math.h>
 
Index: missing/finite.c
===================================================================
--- missing/finite.c	(revision 28770)
+++ missing/finite.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of finite(3) */
 
+#include "ruby/missing.h"
+
 int
 finite(double n)
 {
Index: missing/memcmp.c
===================================================================
--- missing/memcmp.c	(revision 28770)
+++ missing/memcmp.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of memcmp(3) */
 
+#include "ruby/missing.h"
 #include <stddef.h>
 
 int
Index: missing/lgamma_r.c
===================================================================
--- missing/lgamma_r.c	(revision 28770)
+++ missing/lgamma_r.c	(revision 28771)
@@ -8,6 +8,7 @@
             http://oku.edu.mie-u.ac.jp/~okumura/algo/
 */
 
+#include "ruby/missing.h"
 /***********************************************************
     gamma.c -- Gamma function
 ***********************************************************/
Index: missing/strerror.c
===================================================================
--- missing/strerror.c	(revision 28770)
+++ missing/strerror.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of strerror(3) */
 
+#include "ruby/missing.h"
+
 extern int sys_nerr;
 extern char *sys_errlist[];
 
Index: missing/strtol.c
===================================================================
--- missing/strtol.c	(revision 28770)
+++ missing/strtol.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of strtol(3) */
 
+#include "ruby/missing.h"
 #include <ctype.h>
 
 long
Index: missing/cbrt.c
===================================================================
--- missing/cbrt.c	(revision 28770)
+++ missing/cbrt.c	(revision 28771)
@@ -1,3 +1,4 @@
+#include "ruby/missing.h"
 #include <math.h>
 
 double cbrt(double x)
Index: missing/langinfo.c
===================================================================
--- missing/langinfo.c	(revision 28770)
+++ missing/langinfo.c	(revision 28771)
@@ -32,6 +32,7 @@
  *   http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c
  */
 
+#include "ruby/missing.h"
 #include <stdlib.h>
 #include <string.h>
 #if defined _WIN32 || defined __CYGWIN__
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 28770)
+++ ruby_1_8/ChangeLog	(revision 28771)
@@ -1,3 +1,7 @@
+Wed Jul 28 17:11:48 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* missing/*.c: include missing.h
+
 Tue Jul 27 18:33:42 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include
Index: ruby_1_8/version.h
===================================================================
--- ruby_1_8/version.h	(revision 28770)
+++ ruby_1_8/version.h	(revision 28771)
@@ -1,7 +1,7 @@
 #define RUBY_VERSION "1.8.8"
-#define RUBY_RELEASE_DATE "2010-07-27"
+#define RUBY_RELEASE_DATE "2010-07-28"
 #define RUBY_VERSION_CODE 188
-#define RUBY_RELEASE_CODE 20100727
+#define RUBY_RELEASE_CODE 20100728
 #define RUBY_PATCHLEVEL -1
 
 #define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
 #define RUBY_VERSION_TEENY 8
 #define RUBY_RELEASE_YEAR 2010
 #define RUBY_RELEASE_MONTH 7
-#define RUBY_RELEASE_DAY 27
+#define RUBY_RELEASE_DAY 28
 
 #define NO_STRING_LITERAL_CONCATENATION 1
 #ifdef RUBY_EXTERN
Index: ruby_1_8/missing.h
===================================================================
--- ruby_1_8/missing.h	(revision 28770)
+++ ruby_1_8/missing.h	(revision 28771)
@@ -16,7 +16,35 @@
 #ifdef RUBY_EXTCONF_H
 #include RUBY_EXTCONF_H
 #endif
+#ifdef __cplusplus
+# ifndef  HAVE_PROTOTYPES
+#  define HAVE_PROTOTYPES 1
+# endif
+# ifndef  HAVE_STDARG_PROTOTYPES
+#  define HAVE_STDARG_PROTOTYPES 1
+# endif
+#endif
 
+#undef _
+#ifdef HAVE_PROTOTYPES
+# define _(args) args
+#else
+# define _(args) ()
+#endif
+
+#undef __
+#ifdef HAVE_STDARG_PROTOTYPES
+# define __(args) args
+#else
+# define __(args) ()
+#endif
+
+#ifdef __cplusplus
+#define ANYARGS ...
+#else
+#define ANYARGS
+#endif
+
 #if defined(HAVE_SYS_TIME_H)
 #  include <sys/time.h>
 #elif !defined(_WIN32)
Index: ruby_1_8/missing/strstr.c
===================================================================
--- ruby_1_8/missing/strstr.c	(revision 28770)
+++ ruby_1_8/missing/strstr.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of strstr(3) */
 
+#include "missing.h"
+
 char *
 strstr(haystack, needle)
     char *haystack, *needle;
Index: ruby_1_8/missing/crypt.c
===================================================================
--- ruby_1_8/missing/crypt.c	(revision 28770)
+++ ruby_1_8/missing/crypt.c	(revision 28771)
@@ -34,6 +34,7 @@
 static char sccsid[] = "@(#)crypt.c	8.1 (Berkeley) 6/4/93";
 #endif /* LIBC_SCCS and not lint */
 
+#include "missing.h"
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
Index: ruby_1_8/missing/hypot.c
===================================================================
--- ruby_1_8/missing/hypot.c	(revision 28770)
+++ ruby_1_8/missing/hypot.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of hypot */
 
+#include "missing.h"
 #include <math.h>
 
 double hypot(x,y)
Index: ruby_1_8/missing/strcasecmp.c
===================================================================
--- ruby_1_8/missing/strcasecmp.c	(revision 28770)
+++ ruby_1_8/missing/strcasecmp.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of strcasecmp(3) */
 
+#include "missing.h"
 #include <ctype.h>
 
 int
Index: ruby_1_8/missing/strchr.c
===================================================================
--- ruby_1_8/missing/strchr.c	(revision 28770)
+++ ruby_1_8/missing/strchr.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of strchr(3) and strrchr(3) */
 
+#include "missing.h"
+
 char *
 strchr(s, c)
     char *s;
Index: ruby_1_8/missing/memmove.c
===================================================================
--- ruby_1_8/missing/memmove.c	(revision 28770)
+++ ruby_1_8/missing/memmove.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of memcmp(3) */
 
+#include "missing.h"
+
 void *
 memmove (d, s, n)
     void *d, *s;
Index: ruby_1_8/missing/isnan.c
===================================================================
--- ruby_1_8/missing/isnan.c	(revision 28770)
+++ ruby_1_8/missing/isnan.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of isnan(3) */
 
+#include "missing.h"
+
 static int double_ne();
 
 int
Index: ruby_1_8/missing/strtoul.c
===================================================================
--- ruby_1_8/missing/strtoul.c	(revision 28770)
+++ ruby_1_8/missing/strtoul.c	(revision 28771)
@@ -13,6 +13,7 @@
  * express or implied warranty.
  */
 
+#include "missing.h"
 #include <ctype.h>
 
 /*
Index: ruby_1_8/missing/erf.c
===================================================================
--- ruby_1_8/missing/erf.c	(revision 28770)
+++ ruby_1_8/missing/erf.c	(revision 28771)
@@ -3,6 +3,7 @@
 reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
             (New Algorithm handbook in C language) (Gijyutsu hyouron
             sha, Tokyo, 1991) p.227 [in Japanese]                 */
+#include "missing.h"
 #include <stdio.h>
 #include <math.h>
 
Index: ruby_1_8/missing/finite.c
===================================================================
--- ruby_1_8/missing/finite.c	(revision 28770)
+++ ruby_1_8/missing/finite.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of finite(3) */
 
+#include "missing.h"
+
 int
 finite(n)
     double n;
Index: ruby_1_8/missing/memcmp.c
===================================================================
--- ruby_1_8/missing/memcmp.c	(revision 28770)
+++ ruby_1_8/missing/memcmp.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of memcmp(3) */
 
+#include "missing.h"
+
 int
 memcmp(s1,s2,len)
     char *s1;
Index: ruby_1_8/missing/strerror.c
===================================================================
--- ruby_1_8/missing/strerror.c	(revision 28770)
+++ ruby_1_8/missing/strerror.c	(revision 28771)
@@ -1,5 +1,7 @@
 /* public domain rewrite of strerror(3) */
 
+#include "missing.h"
+
 extern int sys_nerr;
 extern char *sys_errlist[];
 
Index: ruby_1_8/missing/strncasecmp.c
===================================================================
--- ruby_1_8/missing/strncasecmp.c	(revision 28770)
+++ ruby_1_8/missing/strncasecmp.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of strncasecmp(3) */
 
+#include "missing.h"
 #include <ctype.h>
 
 int
Index: ruby_1_8/missing/strtol.c
===================================================================
--- ruby_1_8/missing/strtol.c	(revision 28770)
+++ ruby_1_8/missing/strtol.c	(revision 28771)
@@ -1,5 +1,6 @@
 /* public domain rewrite of strtol(3) */
 
+#include "missing.h"
 #include <ctype.h>
 
 long
Index: ruby_1_8/missing/vsnprintf.c
===================================================================
--- ruby_1_8/missing/vsnprintf.c	(revision 28770)
+++ ruby_1_8/missing/vsnprintf.c	(revision 28771)
@@ -60,6 +60,7 @@
 #define	FLOATING_POINT
 */
 
+#include "missing.h"
 #include <sys/types.h>
 #define u_long unsigned long
 #define u_short unsigned short
Index: ruby_1_8/missing/acosh.c
===================================================================
--- ruby_1_8/missing/acosh.c	(revision 28770)
+++ ruby_1_8/missing/acosh.c	(revision 28771)
@@ -10,6 +10,7 @@
 
 **********************************************************************/
 
+#include "missing.h"
 #include <errno.h>
 #include <float.h>
 #include <math.h>

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

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