ruby-changes:4272
From: ko1@a...
Date: Thu, 13 Mar 2008 14:14:41 +0900 (JST)
Subject: [ruby-changes:4272] nobu - Ruby:r15762 (trunk): * trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to check.
nobu 2008-03-13 14:14:21 +0900 (Thu, 13 Mar 2008)
New Revision: 15762
Modified files:
trunk/ChangeLog
trunk/configure.in
trunk/string.c
Log:
* trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to check.
* trunk/configure.in (rb_cv_type_uint32_t): unqouted. [ruby-dev:34030]
* trunk/string.c (hash): use inttypes.h instead of stdint.h.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=15762&r2=15761&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15762&r2=15761&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/configure.in?r1=15762&r2=15761&diff_format=u
Index: configure.in
===================================================================
--- configure.in (revision 15761)
+++ configure.in (revision 15762)
@@ -582,7 +582,7 @@
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
syscall.h pwd.h grp.h a.out.h utime.h memory.h direct.h sys/resource.h \
sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h pthread.h \
- ucontext.h intrinsics.h langinfo.h locale.h stdint.h)
+ ucontext.h intrinsics.h langinfo.h locale.h)
dnl Check additional types.
AC_CHECK_SIZEOF(rlim_t, 0, [
@@ -626,10 +626,11 @@
AC_CACHE_CHECK([unsigned 32bit int],
rb_cv_type_uint32_t,
[for type in short int long; do
+ type="unsigned $type"
AC_COMPILE_IFELSE(AC_LANG_BOOL_COMPILE_TRY([], [sizeof($type) == 4]),
[rb_cv_type_uint32_t=$type; break], [])
done])
- AC_DEFINE(uint32_t, $rb_cv_type_uint32_t)
+ AC_DEFINE_UNQUOTED(uint32_t, $rb_cv_type_uint32_t)
fi
AC_CACHE_CHECK(for stack end address, rb_cv_stack_end_address,
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15761)
+++ ChangeLog (revision 15762)
@@ -1,3 +1,11 @@
+Thu Mar 13 14:14:19 2008 Nobuyoshi Nakada <nobu@r...>
+
+ * trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to check.
+
+ * trunk/configure.in (rb_cv_type_uint32_t): unqouted. [ruby-dev:34030]
+
+ * trunk/string.c (hash): use inttypes.h instead of stdint.h.
+
Thu Mar 13 03:12:48 2008 Yukihiro Matsumoto <matz@r...>
* lib/irb/cmd/help.rb: should be updated for new ri structure.
Index: string.c
===================================================================
--- string.c (revision 15761)
+++ string.c (revision 15762)
@@ -25,8 +25,8 @@
#include <unistd.h>
#endif
-#if HAVE_STDINT_H
-#include <stdint.h>
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
#endif
VALUE rb_cString;
@@ -761,7 +761,7 @@
#ifdef NONASCII_MASK
#define is_utf8_lead_byte(c) (((c)&0xC0) != 0x80)
-static inline const VALUE
+static inline VALUE
count_utf8_lead_bytes_with_word(const VALUE *s)
{
VALUE d = *s;
@@ -1807,7 +1807,7 @@
#endif
h *= m;
h ^= h >> r;
- };
+ }
h *= m;
h ^= h >> 10;
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/