summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-13 07:26:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-13 07:26:47 +0000
commitae2fe781dd4aae16a2f03a4b9fb93514eb9886d4 (patch)
treebc7b2f6399af854b2b7e3515916c5f51d970bf57 /ruby.c
parentad592443af373c3bbe61b41df106734856ad3072 (diff)
1.1b9_19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 8495d6b17d..60cd9a276e 100644
--- a/ruby.c
+++ b/ruby.c
@@ -23,6 +23,17 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+
+#ifdef __MWERKS__
+#include "node.h"
+void show_version();
+void show_copyright();
+#endif
+
+#ifdef USE_CWGUSI
+#include "macruby_missing.h"
+#endif
+
#ifndef HAVE_STRING_H
char *strchr();
char *strrchr();
@@ -73,7 +84,7 @@ extern char *sourcefile;
#define RUBY_SITE_LIB "/usr/local/lib/site_ruby"
#endif
-#if defined(MSDOS) || defined(NT)
+#if defined(MSDOS) || defined(NT) || defined(__MACOS__)
#define RUBY_LIB_SEP ';'
#else
#define RUBY_LIB_SEP ':'
@@ -529,7 +540,9 @@ load_file(fname, script)
argv = origargv;
}
argv[0] = path;
+#ifndef USE_CWGUSI
execv(path, argv);
+#endif
sourcefile = fname;
sourceline = 1;
Fatal("Can't exec %s", path);
@@ -722,6 +735,9 @@ ruby_prog_init()
#if defined(_WIN32) || defined(DJGPP)
addpath(ruby_libpath());
#endif
+#ifdef __MACOS__
+ setup_macruby_libpath();
+#endif
#ifdef RUBY_ARCHLIB
addpath(RUBY_ARCHLIB);