summaryrefslogtreecommitdiffstats
path: root/version.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-05 02:21:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-05 02:21:37 +0000
commit0d1a6a4bd2716f8e3201a4307d5a886c61a29807 (patch)
tree3aa0b97df9894a567483751ede60c298b56045da /version.c
parent900ef642ddc541dd702d5130297cd68ec157d34c (diff)
downloadruby-0d1a6a4bd2716f8e3201a4307d5a886c61a29807.tar.gz
ruby-0d1a6a4bd2716f8e3201a4307d5a886c61a29807.tar.xz
ruby-0d1a6a4bd2716f8e3201a4307d5a886c61a29807.zip
* configure.in (RUBY_LIB_VERSION): added for library version, to
split from core version. [ruby-dev:37748] * configure.in (RUBY_LIB_PATH, etc): moved actual version dependent stuff to version.c. * ruby.c (ruby_init_loadpath_safe): ditto. * version.c (ruby_initial_load_paths): moved initial load path version depending on version from ruby.c. * version.h (RUBY_VERSION_{MAJOR,MINOR,TEENY}): now mean library and API version, and reverted to 1.9.1. [ruby-dev:37889] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/version.c b/version.c
index 53edf0257..ba2020d9b 100644
--- a/version.c
+++ b/version.c
@@ -16,6 +16,13 @@
#define PRINT(type) puts(ruby_##type)
#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
+#ifndef RUBY_ARCH
+#define RUBY_ARCH RUBY_PLATFORM
+#endif
+#ifndef RUBY_SITEARCH
+#define RUBY_SITEARCH RUBY_ARCH
+#endif
+
const char ruby_version[] = RUBY_VERSION;
const char ruby_release_date[] = RUBY_RELEASE_DATE;
const char ruby_platform[] = RUBY_PLATFORM;
@@ -24,6 +31,30 @@ const char ruby_description[] = RUBY_DESCRIPTION;
const char ruby_copyright[] = RUBY_COPYRIGHT;
const char ruby_engine[] = "ruby";
+const char ruby_initial_load_paths[] =
+#ifdef RUBY_SEARCH_PATH
+ RUBY_SEARCH_PATH "\0"
+#endif
+ RUBY_SITE_LIB2 "\0"
+#ifdef RUBY_SITE_THIN_ARCHLIB
+ RUBY_SITE_THIN_ARCHLIB "\0"
+#endif
+ RUBY_SITE_ARCHLIB "\0"
+ RUBY_SITE_LIB "\0"
+
+ RUBY_VENDOR_LIB2 "\0"
+#ifdef RUBY_VENDOR_THIN_ARCHLIB
+ RUBY_VENDOR_THIN_ARCHLIB "\0"
+#endif
+ RUBY_VENDOR_ARCHLIB "\0"
+ RUBY_VENDOR_LIB "\0"
+
+ RUBY_LIB "\0"
+#ifdef RUBY_THIN_ARCHLIB
+ RUBY_THIN_ARCHLIB "\0"
+#endif
+ RUBY_ARCHLIB "\0";
+
void
Init_version(void)
{