From f8e87ab13d54060a94f01e4e12bb9f97d7be512c Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 1 Sep 2006 18:47:11 +0000 Subject: * common.mk, configure.in, defines.h, eval.c, gc.c, main.c, numeric.c, ruby.h, ia64.s: backport IA64 HP-UX support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.h | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'ruby.h') diff --git a/ruby.h b/ruby.h index dcf7fbd82..0a75902b8 100644 --- a/ruby.h +++ b/ruby.h @@ -25,6 +25,15 @@ extern "C" { #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif + +#define NORETURN_STYLE_NEW 1 +#ifndef NORETURN +# define NORETURN(x) x +#endif +#ifndef NOINLINE +# define NOINLINE(x) x +#endif + #include "defines.h" #ifdef HAVE_STDLIB_H @@ -58,11 +67,6 @@ extern "C" { #define ISXDIGIT(c) (ISASCII(c) && isxdigit((int)(unsigned char)(c))) #endif -#define NORETURN_STYLE_NEW 1 -#ifndef NORETURN -# define NORETURN(x) x -#endif - #if defined(HAVE_ALLOCA_H) #include #else @@ -565,6 +569,17 @@ NORETURN(void rb_throw _((const char*,VALUE))); VALUE rb_require _((const char*)); +#ifdef __ia64 +void ruby_init_stack(VALUE*, void*); +#define RUBY_INIT_STACK \ + VALUE variable_in_this_stack_frame; \ + ruby_init_stack(&variable_in_this_stack_frame, rb_ia64_bsp()); +#else +void ruby_init_stack(VALUE*); +#define RUBY_INIT_STACK \ + VALUE variable_in_this_stack_frame; \ + ruby_init_stack(&variable_in_this_stack_frame); +#endif void ruby_init _((void)); void ruby_options _((int, char**)); NORETURN(void ruby_run _((void))); -- cgit