NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81ef4309a2
commit
74d0eaf6a2
@ -4,6 +4,10 @@ Wed Jan 10 16:15:08 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
|||||||
|
|
||||||
* eval.c, intern.h: ditto.
|
* eval.c, intern.h: ditto.
|
||||||
|
|
||||||
|
* djgpp/config.hin, win32/win32.h: ditto.
|
||||||
|
|
||||||
|
* configure.in: ditto.
|
||||||
|
|
||||||
Wed Jan 10 13:54:53 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
Wed Jan 10 13:54:53 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* process.c (proc_setuid): use setresuid() if available.
|
* process.c (proc_setuid): use setresuid() if available.
|
||||||
@ -104,6 +108,10 @@ Fri Dec 29 11:05:41 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||||||
* eval.c (rb_thread_join): join during critical section causes
|
* eval.c (rb_thread_join): join during critical section causes
|
||||||
deadlock.
|
deadlock.
|
||||||
|
|
||||||
|
Fri Dec 29 00:38:46 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* m17n.c: new file - core functions of M17N.
|
||||||
|
|
||||||
Tue Dec 26 18:46:41 2000 NAKAMURA Hiroshi <nakahiro@sarion.co.jp>
|
Tue Dec 26 18:46:41 2000 NAKAMURA Hiroshi <nakahiro@sarion.co.jp>
|
||||||
|
|
||||||
* lib/debug.rb: Avoid thread deadlock in debugging stopped thread.
|
* lib/debug.rb: Avoid thread deadlock in debugging stopped thread.
|
||||||
|
26
configure.in
26
configure.in
@ -155,13 +155,25 @@ if test "$rb_cv_stdarg" = yes; then
|
|||||||
AC_DEFINE(HAVE_STDARG_PROTOTYPES)
|
AC_DEFINE(HAVE_STDARG_PROTOTYPES)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CACHE_CHECK(for gcc attribute noreturn, rb_cv_have_attr_noreturn,
|
dnl AC_CACHE_CHECK(for gcc attribute noreturn, rb_cv_have_attr_noreturn,
|
||||||
[AC_TRY_COMPILE([void exit(int x) __attribute__ ((noreturn));], [],
|
dnl [AC_TRY_COMPILE([void exit(int x) __attribute__ ((noreturn));], [],
|
||||||
rb_cv_have_attr_noreturn=yes,
|
dnl rb_cv_have_attr_noreturn=yes,
|
||||||
rb_cv_have_attr_noreturn=no)])
|
dnl rb_cv_have_attr_noreturn=no)])
|
||||||
if test "$rb_cv_have_attr_noreturn" = yes; then
|
dnl if test "$rb_cv_have_attr_noreturn" = yes; then
|
||||||
AC_DEFINE(HAVE_ATTR_NORETURN)
|
dnl AC_DEFINE(HAVE_ATTR_NORETURN)
|
||||||
fi
|
dnl fi
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([for noreturn], rb_cv_noreturn,
|
||||||
|
[rb_cv_noreturn=no
|
||||||
|
for mac in "x __attribute__ ((noreturn))" "__declspec(noreturn) x" x; do
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[#define NORETURN(x) $mac
|
||||||
|
NORETURN(void exit(int x));],
|
||||||
|
[],
|
||||||
|
[rb_cv_noreturn="$mac"; break])
|
||||||
|
done])
|
||||||
|
AC_DEFINE_UNQUOTED([NORETURN(x)], $rb_cv_noreturn)
|
||||||
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for inline)
|
AC_MSG_CHECKING(for inline)
|
||||||
AC_CACHE_VAL(rb_cv_inline,
|
AC_CACHE_VAL(rb_cv_inline,
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
#define USE_THREAD 1
|
|
||||||
#define SIZEOF_INT 4
|
#define SIZEOF_INT 4
|
||||||
#define SIZEOF_SHORT 2
|
#define SIZEOF_SHORT 2
|
||||||
#define SIZEOF_LONG 4
|
#define SIZEOF_LONG 4
|
||||||
|
#define SIZEOF___INT64 0
|
||||||
#define SIZEOF_VOIDP 4
|
#define SIZEOF_VOIDP 4
|
||||||
#define SIZEOF_FLOAT 4
|
#define SIZEOF_FLOAT 4
|
||||||
#define SIZEOF_DOUBLE 8
|
#define SIZEOF_DOUBLE 8
|
||||||
#define HAVE_PROTOTYPES 1
|
#define HAVE_PROTOTYPES 1
|
||||||
#define TOKEN_PASTE(x,y) x##y
|
#define TOKEN_PASTE(x,y) x##y
|
||||||
#define HAVE_STDARG_PROTOTYPES 1
|
#define HAVE_STDARG_PROTOTYPES 1
|
||||||
|
#define NORETURN(x) x __attribute__ ((noreturn))
|
||||||
|
#define HAVE_INLINE 1
|
||||||
|
#define INLINE __inline__
|
||||||
#define HAVE_ATTR_NORETURN 1
|
#define HAVE_ATTR_NORETURN 1
|
||||||
#define HAVE_DIRENT_H 1
|
#define HAVE_DIRENT_H 1
|
||||||
#define STDC_HEADERS 1
|
#define STDC_HEADERS 1
|
||||||
@ -61,7 +64,8 @@
|
|||||||
#define HAVE_SETSID 1
|
#define HAVE_SETSID 1
|
||||||
#define POSIX_SIGNAL 1
|
#define POSIX_SIGNAL 1
|
||||||
#define BSD_SETPGRP setpgrp
|
#define BSD_SETPGRP setpgrp
|
||||||
#define RSHIFT(x,y) ((x)>>y)
|
#define RSHIFT(x,y) ((x)>>(int)y)
|
||||||
|
#define DEFAULT_KCODE KCODE_NONE
|
||||||
#define FILE_COUNT _cnt
|
#define FILE_COUNT _cnt
|
||||||
#define DLEXT ".o"
|
#define DLEXT ".o"
|
||||||
#define RUBY_LIB "/lib/ruby/@MAJOR@.@MINOR@"
|
#define RUBY_LIB "/lib/ruby/@MAJOR@.@MINOR@"
|
||||||
|
4
ruby.h
4
ruby.h
@ -63,9 +63,7 @@ extern "C" {
|
|||||||
# define __(args) ()
|
# define __(args) ()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ATTR_NORETURN
|
#ifndef NORETURN
|
||||||
# define NORETURN(x) x __attribute__ ((noreturn))
|
|
||||||
#elif !defined NORETURN
|
|
||||||
# define NORETURN(x) x
|
# define NORETURN(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#define EXTERN extern __declspec(dllexport)
|
#define EXTERN extern __declspec(dllexport)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined _MSC_VER
|
#if defined _MSC_VER && !defined NORETURN
|
||||||
#define NORETURN(x) __declspec(noreturn) x
|
#define NORETURN(x) __declspec(noreturn) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user