summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-01 18:47:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-01 18:47:11 +0000
commit53cec657a12da343a932c1cfd0293faf5b0e3b13 (patch)
tree45ab61acfbb6ab5193bb1f5bcf2884706fe94eee /ruby.h
parent2712989175e936e7fac094366cfd55048dca7459 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/ruby.h b/ruby.h
index dcf7fbd..0a75902 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 <alloca.h>
#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)));