Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 86 lines (78 sloc) 2.108 kb
abf6ebd fixed the --version output to show ruby 1.9.1
Laurent Sansonetti authored
1 #define RUBY_VERSION "1.9.1"
26d0e1f merge with ruby trunk r16762 + better/faster objc-like dispatcher
Laurent Sansonetti authored
2 #define RUBY_RELEASE_DATE "2008-06-03"
511dc44 initial import
Laurent Sansonetti authored
3 #define RUBY_VERSION_CODE 190
26d0e1f merge with ruby trunk r16762 + better/faster objc-like dispatcher
Laurent Sansonetti authored
4 #define RUBY_RELEASE_CODE 20080603
511dc44 initial import
Laurent Sansonetti authored
5 #define RUBY_PATCHLEVEL 0
6
7 #define RUBY_VERSION_MAJOR 1
8 #define RUBY_VERSION_MINOR 9
9 #define RUBY_VERSION_TEENY 0
10 #define RUBY_RELEASE_YEAR 2008
26d0e1f merge with ruby trunk r16762 + better/faster objc-like dispatcher
Laurent Sansonetti authored
11 #define RUBY_RELEASE_MONTH 6
12 #define RUBY_RELEASE_DAY 3
511dc44 initial import
Laurent Sansonetti authored
13
14 #ifdef RUBY_EXTERN
15 RUBY_EXTERN const int ruby_version_code;
16 RUBY_EXTERN const char ruby_version[];
17 RUBY_EXTERN const char ruby_release_date[];
18 RUBY_EXTERN const char ruby_platform[];
19 RUBY_EXTERN const int ruby_patchlevel;
20 RUBY_EXTERN const char ruby_description[];
21 RUBY_EXTERN const char ruby_copyright[];
22 #endif
23
24 #define RUBY_AUTHOR "Yukihiro Matsumoto"
25 #define RUBY_BIRTH_YEAR 1993
26 #define RUBY_BIRTH_MONTH 2
27 #define RUBY_BIRTH_DAY 24
28
29 #ifndef RUBY_REVISION
30 /*#include "revision.h"*/
31 #endif
32 #ifndef RUBY_REVISION
33 #define RUBY_REVISION 0
34 #endif
35
36 #if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000 && !RUBY_REVISION
37 #define RUBY_RELEASE_STR "patchlevel"
38 #define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
39 #else
40 #ifdef RUBY_BRANCH_NAME
41 #define RUBY_RELEASE_STR RUBY_BRANCH_NAME
42 #else
43 #define RUBY_RELEASE_STR "revision"
44 #endif
45 #define RUBY_RELEASE_NUM RUBY_REVISION
46 #endif
47
48 #if WITH_OBJC
4a2b903 merging lrz_unstable branch
Laurent Sansonetti authored
49 # define RUBY_ENGINE "macruby"
511dc44 initial import
Laurent Sansonetti authored
50 #else
4a2b903 merging lrz_unstable branch
Laurent Sansonetti authored
51 # define RUBY_ENGINE "ruby"
511dc44 initial import
Laurent Sansonetti authored
52 #endif
53
54 #if WITH_OBJC
c01f351 we are 0.4 now
Laurent Sansonetti authored
55 # define MACRUBY_VERSION 0.4
6bcd45f merging macruby64 branch into trunk
Laurent Sansonetti authored
56 # if defined(__LP64__)
57 # if BYTE_ORDER == BIG_ENDIAN
58 # define RUBY_ARCH "ppc64"
59 # else
60 # define RUBY_ARCH "x86_64"
61 # endif
62 # else
63 # if BYTE_ORDER == BIG_ENDIAN
64 # define RUBY_ARCH "ppc"
65 # else
66 # define RUBY_ARCH "i386"
67 # endif
68 # endif
511dc44 initial import
Laurent Sansonetti authored
69 # define RUBY_DESCRIPTION \
70 "MacRuby version " STRINGIZE(MACRUBY_VERSION) \
71 " (ruby "RUBY_VERSION \
abf6ebd fixed the --version output to show ruby 1.9.1
Laurent Sansonetti authored
72 ") ["RUBY_PLATFORM", "RUBY_ARCH"]"
511dc44 initial import
Laurent Sansonetti authored
73 #else
74 # define RUBY_DESCRIPTION \
75 "ruby "RUBY_VERSION \
76 " ("RUBY_RELEASE_DATE" " \
77 RUBY_RELEASE_STR" " \
78 STRINGIZE(RUBY_RELEASE_NUM)") " \
79 "["RUBY_PLATFORM"]"
80 #endif
81 # define RUBY_COPYRIGHT \
82 "ruby - Copyright (C) " \
83 STRINGIZE(RUBY_BIRTH_YEAR)"-" \
84 STRINGIZE(RUBY_RELEASE_YEAR)" " \
85 RUBY_AUTHOR
Something went wrong with that request. Please try again.