* missing/*.c: include missing.h

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-07-28 08:12:01 +00:00
parent e53a60147b
commit 51b6bfb011
18 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Jul 28 17:11:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* missing/*.c: include missing.h
Wed Jul 28 09:38:03 2010 NAKAMURA Usaku <usa@ruby-lang.org> Wed Jul 28 09:38:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* cont.c: typos. * cont.c: typos.

View File

@ -1,3 +1,4 @@
#include "ruby/missing.h"
#include <math.h> #include <math.h>
double cbrt(double x) double cbrt(double x)

View File

@ -1,4 +1,5 @@
/* Ignore ECONNRESET of FreeBSD */ /* Ignore ECONNRESET of FreeBSD */
#include "ruby/missing.h"
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -34,6 +34,7 @@
static char sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "ruby/missing.h"
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@ -3,6 +3,7 @@
reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
(New Algorithm handbook in C language) (Gijyutsu hyouron (New Algorithm handbook in C language) (Gijyutsu hyouron
sha, Tokyo, 1991) p.227 [in Japanese] */ sha, Tokyo, 1991) p.227 [in Japanese] */
#include "ruby/missing.h"
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>

View File

@ -1,5 +1,7 @@
/* public domain rewrite of finite(3) */ /* public domain rewrite of finite(3) */
#include "ruby/missing.h"
int int
finite(double n) finite(double n)
{ {

View File

@ -1,5 +1,6 @@
/* public domain rewrite of hypot */ /* public domain rewrite of hypot */
#include "ruby/missing.h"
#include <math.h> #include <math.h>
double hypot(double x, double y) double hypot(double x, double y)

View File

@ -1,5 +1,7 @@
/* public domain rewrite of isnan(3) */ /* public domain rewrite of isnan(3) */
#include "ruby/missing.h"
static int double_ne(double n1, double n2); static int double_ne(double n1, double n2);
int int

View File

@ -32,6 +32,7 @@
* http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c * http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c
*/ */
#include "ruby/missing.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if defined _WIN32 || defined __CYGWIN__ #if defined _WIN32 || defined __CYGWIN__

View File

@ -8,6 +8,7 @@ reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
http://oku.edu.mie-u.ac.jp/~okumura/algo/ http://oku.edu.mie-u.ac.jp/~okumura/algo/
*/ */
#include "ruby/missing.h"
/*********************************************************** /***********************************************************
gamma.c -- Gamma function gamma.c -- Gamma function
***********************************************************/ ***********************************************************/

View File

@ -1,5 +1,6 @@
/* public domain rewrite of memcmp(3) */ /* public domain rewrite of memcmp(3) */
#include "ruby/missing.h"
#include <stddef.h> #include <stddef.h>
int int

View File

@ -1,5 +1,6 @@
/* public domain rewrite of memcmp(3) */ /* public domain rewrite of memcmp(3) */
#include "ruby/missing.h"
#include <stddef.h> #include <stddef.h>
void * void *

View File

@ -1,5 +1,7 @@
/* public domain rewrite of strchr(3) and strrchr(3) */ /* public domain rewrite of strchr(3) and strrchr(3) */
#include "ruby/missing.h"
char * char *
strchr(const char *s, int c) strchr(const char *s, int c)
{ {

View File

@ -1,5 +1,7 @@
/* public domain rewrite of strerror(3) */ /* public domain rewrite of strerror(3) */
#include "ruby/missing.h"
extern int sys_nerr; extern int sys_nerr;
extern char *sys_errlist[]; extern char *sys_errlist[];

View File

@ -31,6 +31,7 @@
static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $"; static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "ruby/missing.h"
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>

View File

@ -31,6 +31,7 @@
static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $"; static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "ruby/missing.h"
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>

View File

@ -1,5 +1,7 @@
/* public domain rewrite of strstr(3) */ /* public domain rewrite of strstr(3) */
#include "ruby/missing.h"
char * char *
strstr(const char *haystack, const char *needle) strstr(const char *haystack, const char *needle)
{ {

View File

@ -1,5 +1,6 @@
/* public domain rewrite of strtol(3) */ /* public domain rewrite of strtol(3) */
#include "ruby/missing.h"
#include <ctype.h> #include <ctype.h>
long long