* Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
extension libraries. * bignum.c (bignew_1, bigadd): K&R style argument actually can't be defined as char. * missing/vsnprintf.c: ANSI compiler supports const keyword. * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h but no 64bit integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d302364b50
commit
f6892cba23
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
Wed Sep 7 08:22:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
|
||||||
|
extension libraries.
|
||||||
|
|
||||||
|
* bignum.c (bignew_1, bigadd): K&R style argument actually can't be
|
||||||
|
defined as char.
|
||||||
|
|
||||||
|
* missing/vsnprintf.c: ANSI compiler supports const keyword.
|
||||||
|
|
||||||
|
* ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h
|
||||||
|
but no 64bit integer.
|
||||||
|
|
||||||
Mon Sep 5 22:28:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Sep 5 22:28:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
|
* parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
|
||||||
|
@ -43,6 +43,7 @@ LDSHARED = @LIBRUBY_LDSHARED@
|
|||||||
DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@
|
DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@
|
||||||
SOLIBS = @SOLIBS@
|
SOLIBS = @SOLIBS@
|
||||||
MAINLIBS = @MAINLIBS@
|
MAINLIBS = @MAINLIBS@
|
||||||
|
MINIOBJS = @MINIOBJS@
|
||||||
|
|
||||||
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
|
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
|
||||||
RUBY_SO_NAME=@RUBY_SO_NAME@
|
RUBY_SO_NAME=@RUBY_SO_NAME@
|
||||||
|
8
bignum.c
8
bignum.c
@ -42,11 +42,11 @@ static VALUE
|
|||||||
bignew_1(klass, len, sign)
|
bignew_1(klass, len, sign)
|
||||||
VALUE klass;
|
VALUE klass;
|
||||||
long len;
|
long len;
|
||||||
char sign;
|
int sign;
|
||||||
{
|
{
|
||||||
NEWOBJ(big, struct RBignum);
|
NEWOBJ(big, struct RBignum);
|
||||||
OBJSETUP(big, klass, T_BIGNUM);
|
OBJSETUP(big, klass, T_BIGNUM);
|
||||||
big->sign = sign;
|
big->sign = (char)sign;
|
||||||
big->len = len;
|
big->len = len;
|
||||||
big->digits = ALLOC_N(BDIGIT, len);
|
big->digits = ALLOC_N(BDIGIT, len);
|
||||||
|
|
||||||
@ -1036,7 +1036,7 @@ rb_big_uminus(x)
|
|||||||
return bignorm(z);
|
return bignorm(z);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE bigadd _((VALUE,VALUE,char));
|
static VALUE bigadd _((VALUE,VALUE,int));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
@ -1120,7 +1120,7 @@ bigsub(x, y)
|
|||||||
static VALUE
|
static VALUE
|
||||||
bigadd(x, y, sign)
|
bigadd(x, y, sign)
|
||||||
VALUE x, y;
|
VALUE x, y;
|
||||||
char sign;
|
int sign;
|
||||||
{
|
{
|
||||||
VALUE z;
|
VALUE z;
|
||||||
BDIGIT_DBL num;
|
BDIGIT_DBL num;
|
||||||
|
@ -1385,6 +1385,7 @@ case "$target_os" in
|
|||||||
LIBRUBY='lib$(RUBY_SO_NAME).a'
|
LIBRUBY='lib$(RUBY_SO_NAME).a'
|
||||||
LIBRUBYARG='-l$(RUBY_SO_NAME)'
|
LIBRUBYARG='-l$(RUBY_SO_NAME)'
|
||||||
fi
|
fi
|
||||||
|
MINIOBJS=dmydln.o
|
||||||
;;
|
;;
|
||||||
hpux*)
|
hpux*)
|
||||||
case "$YACC" in
|
case "$YACC" in
|
||||||
@ -1393,6 +1394,7 @@ case "$target_os" in
|
|||||||
YACC="$YACC -Nl40000 -Nm40000"
|
YACC="$YACC -Nl40000 -Nm40000"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
MINIOBJS=dmydln.o
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
@ -1425,6 +1427,7 @@ AC_SUBST(COMMON_LIBS)
|
|||||||
AC_SUBST(COMMON_MACROS)
|
AC_SUBST(COMMON_MACROS)
|
||||||
AC_SUBST(COMMON_HEADERS)
|
AC_SUBST(COMMON_HEADERS)
|
||||||
AC_SUBST(EXPORT_PREFIX)
|
AC_SUBST(EXPORT_PREFIX)
|
||||||
|
AC_SUBST(MINIOBJS)
|
||||||
|
|
||||||
MAKEFILES="Makefile `echo $FIRSTMAKEFILE | sed 's/:.*//'`"
|
MAKEFILES="Makefile `echo $FIRSTMAKEFILE | sed 's/:.*//'`"
|
||||||
MAKEFILES="`echo $MAKEFILES`"
|
MAKEFILES="`echo $MAKEFILES`"
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
MINIOBJS = dmydln.o
|
|
||||||
|
|
||||||
include Makefile
|
include Makefile
|
||||||
|
|
||||||
ENABLE_SHARED=@ENABLE_SHARED@
|
ENABLE_SHARED=@ENABLE_SHARED@
|
||||||
|
@ -19,12 +19,6 @@ have_header("unistd.h")
|
|||||||
|
|
||||||
$preload = %w[digest]
|
$preload = %w[digest]
|
||||||
|
|
||||||
if try_cpp(<<SRC, $defs.join(' '))
|
if have_type("uint64_t", "defs.h", $defs.join(' '))
|
||||||
#include "defs.h"
|
|
||||||
#ifdef NO_UINT64_T
|
|
||||||
#error ** Cannot find a 64bit integer type - skipping the SHA2 module.
|
|
||||||
#endif
|
|
||||||
SRC
|
|
||||||
then
|
|
||||||
create_makefile("digest/sha2")
|
create_makefile("digest/sha2")
|
||||||
end
|
end
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__hpux) && !defined(__GNUC__)
|
#if defined(__hpux) && !defined(__GNUC__) && !defined(__STDC__)
|
||||||
#define const
|
#define const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user