From ddee6e7c06119391a8214f70dd964abba5f7d46d Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 11 May 2002 19:31:18 +0000 Subject: * missing.h: add for missing/*.c. * ruby.h: add `#include "missing.h"'. * Makefile.in: add the dependency of missing.h by gcc -MM. * MANIFEST: add missing.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++ MANIFEST | 1 + Makefile.in | 90 +++++++++++++++++++++++++++------------------- missing.h | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 182 insertions(+), 37 deletions(-) create mode 100644 missing.h diff --git a/ChangeLog b/ChangeLog index f3e3a34e27..e3cc62e2a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Sun May 12 03:01:08 2002 WATANABE Hirofumi + + * missing.h: add for missing/*.c. + + * ruby.h: add `#include "missing.h"'. + + * Makefile.in: add the dependency of missing.h by gcc -MM. + + * MANIFEST: add missing.h + Sat May 11 10:52:09 2002 Nobuyoshi Nakada * dir.c (glob_helper): remove escaping backslashes. diff --git a/MANIFEST b/MANIFEST index 5d656879f2..61e677e500 100644 --- a/MANIFEST +++ b/MANIFEST @@ -41,6 +41,7 @@ lex.c main.c marshal.c math.c +missing.h mkconfig.rb node.h numeric.c diff --git a/Makefile.in b/Makefile.in index fd02b46874..9bb704568e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -163,8 +163,6 @@ parse.c: parse.y $(YACC) $< mv -f y.tab.c parse.c -parse.@OBJEXT@: parse.c - acosh.@OBJEXT@: $(srcdir)/missing/acosh.c $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/acosh.c @@ -249,42 +247,60 @@ win32.@OBJEXT@: $(srcdir)/win32/win32.c # Prevent GNU make v3 from overflowing arg limit on SysV. .NOEXPORT: ### -parse.@OBJEXT@: parse.y ruby.h config.h defines.h intern.h env.h node.h st.h regex.h util.h lex.c -### -array.@OBJEXT@: array.c ruby.h config.h defines.h intern.h util.h st.h -bignum.@OBJEXT@: bignum.c ruby.h config.h defines.h intern.h -class.@OBJEXT@: class.c ruby.h config.h defines.h intern.h rubysig.h node.h st.h -compar.@OBJEXT@: compar.c ruby.h config.h defines.h intern.h -dir.@OBJEXT@: dir.c ruby.h config.h defines.h intern.h +array.@OBJEXT@: array.c ruby.h config.h defines.h intern.h missing.h \ + util.h st.h +bignum.@OBJEXT@: bignum.c ruby.h config.h defines.h intern.h missing.h +class.@OBJEXT@: class.c ruby.h config.h defines.h intern.h missing.h \ + rubysig.h node.h st.h +compar.@OBJEXT@: compar.c ruby.h config.h defines.h intern.h missing.h +dir.@OBJEXT@: dir.c ruby.h config.h defines.h intern.h missing.h util.h dln.@OBJEXT@: dln.c config.h defines.h dln.h dmyext.@OBJEXT@: dmyext.c -enum.@OBJEXT@: enum.c ruby.h config.h defines.h intern.h node.h -error.@OBJEXT@: error.c ruby.h config.h defines.h intern.h env.h version.h -eval.@OBJEXT@: eval.c ruby.h config.h defines.h intern.h node.h env.h rubysig.h st.h dln.h -file.@OBJEXT@: file.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h dln.h util.h -gc.@OBJEXT@: gc.c ruby.h config.h defines.h intern.h rubysig.h st.h node.h env.h re.h regex.h -hash.@OBJEXT@: hash.c ruby.h config.h defines.h intern.h st.h rubysig.h util.h -inits.@OBJEXT@: inits.c ruby.h config.h defines.h intern.h -io.@OBJEXT@: io.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h env.h util.h -main.@OBJEXT@: main.c ruby.h config.h defines.h intern.h -marshal.@OBJEXT@: marshal.c ruby.h config.h defines.h intern.h rubyio.h st.h -prec.@OBJEXT@: prec.c ruby.h config.h defines.h intern.h -math.@OBJEXT@: math.c ruby.h config.h defines.h intern.h -numeric.@OBJEXT@: numeric.c ruby.h config.h defines.h intern.h -object.@OBJEXT@: object.c ruby.h config.h defines.h intern.h st.h -pack.@OBJEXT@: pack.c ruby.h config.h defines.h intern.h -process.@OBJEXT@: process.c ruby.h config.h defines.h intern.h rubysig.h st.h -random.@OBJEXT@: random.c ruby.h config.h defines.h intern.h -range.@OBJEXT@: range.c ruby.h config.h defines.h intern.h -re.@OBJEXT@: re.c ruby.h config.h defines.h intern.h re.h regex.h +enum.@OBJEXT@: enum.c ruby.h config.h defines.h intern.h missing.h node.h \ + util.h +error.@OBJEXT@: error.c ruby.h config.h defines.h intern.h missing.h \ + env.h version.h +eval.@OBJEXT@: eval.c ruby.h config.h defines.h intern.h missing.h node.h \ + env.h util.h rubysig.h st.h dln.h +file.@OBJEXT@: file.c ruby.h config.h defines.h intern.h missing.h \ + rubyio.h rubysig.h util.h dln.h +gc.@OBJEXT@: gc.c ruby.h config.h defines.h intern.h missing.h rubysig.h \ + st.h node.h env.h re.h regex.h +hash.@OBJEXT@: hash.c ruby.h config.h defines.h intern.h missing.h st.h \ + util.h rubysig.h +inits.@OBJEXT@: inits.c ruby.h config.h defines.h intern.h missing.h +io.@OBJEXT@: io.c ruby.h config.h defines.h intern.h missing.h rubyio.h \ + rubysig.h env.h util.h +main.@OBJEXT@: main.c ruby.h config.h defines.h intern.h missing.h +marshal.@OBJEXT@: marshal.c ruby.h config.h defines.h intern.h missing.h \ + rubyio.h st.h +math.@OBJEXT@: math.c ruby.h config.h defines.h intern.h missing.h +numeric.@OBJEXT@: numeric.c ruby.h config.h defines.h intern.h missing.h +object.@OBJEXT@: object.c ruby.h config.h defines.h intern.h missing.h \ + st.h +pack.@OBJEXT@: pack.c ruby.h config.h defines.h intern.h missing.h +parse.@OBJEXT@: parse.c ruby.h config.h defines.h intern.h missing.h \ + env.h node.h st.h regex.h util.h lex.c +prec.@OBJEXT@: prec.c ruby.h config.h defines.h intern.h missing.h +process.@OBJEXT@: process.c ruby.h config.h defines.h intern.h missing.h \ + rubysig.h st.h +random.@OBJEXT@: random.c ruby.h config.h defines.h intern.h missing.h +range.@OBJEXT@: range.c ruby.h config.h defines.h intern.h missing.h +re.@OBJEXT@: re.c ruby.h config.h defines.h intern.h missing.h re.h \ + regex.h regex.@OBJEXT@: regex.c config.h regex.h -ruby.@OBJEXT@: ruby.c ruby.h config.h defines.h intern.h dln.h node.h util.h -signal.@OBJEXT@: signal.c ruby.h config.h defines.h intern.h rubysig.h -sprintf.@OBJEXT@: sprintf.c ruby.h config.h defines.h intern.h +ruby.@OBJEXT@: ruby.c ruby.h config.h defines.h intern.h missing.h dln.h \ + node.h util.h +signal.@OBJEXT@: signal.c ruby.h config.h defines.h intern.h missing.h \ + rubysig.h +sprintf.@OBJEXT@: sprintf.c ruby.h config.h defines.h intern.h missing.h st.@OBJEXT@: st.c config.h st.h -string.@OBJEXT@: string.c ruby.h config.h defines.h intern.h re.h regex.h -struct.@OBJEXT@: struct.c ruby.h config.h defines.h intern.h -time.@OBJEXT@: time.c ruby.h config.h defines.h intern.h -util.@OBJEXT@: util.c ruby.h config.h defines.h intern.h util.h -variable.@OBJEXT@: variable.c ruby.h config.h defines.h intern.h env.h node.h st.h -version.@OBJEXT@: version.c ruby.h config.h defines.h intern.h version.h +string.@OBJEXT@: string.c ruby.h config.h defines.h intern.h missing.h \ + re.h regex.h +struct.@OBJEXT@: struct.c ruby.h config.h defines.h intern.h missing.h +time.@OBJEXT@: time.c ruby.h config.h defines.h intern.h missing.h +util.@OBJEXT@: util.c ruby.h config.h defines.h intern.h missing.h util.h +variable.@OBJEXT@: variable.c ruby.h config.h defines.h intern.h \ + missing.h env.h node.h st.h util.h +version.@OBJEXT@: version.c ruby.h config.h defines.h intern.h missing.h \ + version.h diff --git a/missing.h b/missing.h new file mode 100644 index 0000000000..e66d891481 --- /dev/null +++ b/missing.h @@ -0,0 +1,118 @@ +/************************************************ + + missing.h - prototype for missing/*.c + + $Author$ + $Date$ + created at: Sat May 11 23:46:03 JST 2002 + +************************************************/ + +#ifndef MISSING_H +#define MISSING_H + +#ifndef HAVE_ACOSH +extern double acosh _((double)); +extern double asinh _((double)); +extern double atanh _((double)); +#endif + +#ifndef HAVE_CRYPT +extern char *crypt _((char *, char *)); +#endif + +#ifndef HAVE_DUP2 +extern int dup2 _((int, int)); +#endif + +#ifndef HAVE_FINITE +extern int finite _((double)); +#endif + +#ifndef HAVE_FLOCK +extern int flock _((int, int)); +#endif + +/* +#ifndef HAVE_FREXP +extern double frexp _((double, int *)); +#endif +*/ + +#ifndef HAVE_HYPOT +extern double hypot _((double, double)); +#endif + +#ifndef HAVE_ISINF +extern int isinf _((double)); +#endif + +#ifndef HAVE_ISNAN +extern int isnan _((double)); +#endif + +/* +#ifndef HAVE_MEMCMP +extern int memcmp _((char *, char *, int)); +#endif +*/ + +#ifndef HAVE_MEMMOVE +extern char *memmove _((char *, char *, int)); +#endif + +#ifndef HAVE_MKDIR +extern int mkdir _((char *, int)); +#endif + +/* +#ifndef HAVE_MODF +extern double modf _((double, double *)); +#endif +*/ + +#ifndef HAVE_STRCASECMP +extern int strcasecmp _((char *, char *)); +#endif + +#ifndef HAVE_STRNCASECMP +extern int strncasecmp _((char *, char *, int)); +#endif + +#ifndef HAVE_STRCHR +extern int strchr _((char *, int)); +extern int strrchr _((char *, int)); +#endif + +#ifndef HAVE_STRERROR +extern char *strerror _((int)); +#endif + +#ifndef HAVE_STRFTIME +extern size_t strftime _((char *, size_t, const char *, const struct tm *)); +#endif + +#ifndef HAVE_STRSTR +extern char *strstr _((char *, char *)); +#endif + +#ifndef HAVE_STRTOD +extern double strtod _((const char *, char **)); +#endif + +/* +#ifndef HAVE_STRTOL +extern long strtol _((char *, char **, int)); +#endif +*/ + +#ifndef HAVE_STRTOUL +extern long strtoul _((char *, char **, int)); +#endif + +#ifndef HAVE_VSNPRINTF +extern snprintf __((char *, size_t n, char const *, ...)); +extern vsnprintf _((char *, size_t n, char const *, va_list)); +#endif + +#endif /* MISSING_H */ -- cgit v1.2.3