summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2017-08-30 23:23:38 +0900
committerNobuyoshi Nakada <[email protected]>2022-08-31 18:00:45 +0900
commit32a059151507876de804adbfbf4926937333e091 ()
treeee0add1d9ddc64c4cdd7d225439f7b6df12ce7b8 /version.c
parent2b967cd4b73425681877c247e5731353e171a3ef (diff)
Move macros from version.h to version.c
Moved the contents of `ruby_description` and `ruby_copyright` which are never used in the other places.
-rw-r--r--version.c27
1 files changed, 26 insertions, 1 deletions
@@ -20,6 +20,29 @@
#define EXIT_SUCCESS 0
#endif
#define PRINT(type) puts(ruby_##type)
#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1))
#define MKINT(name) INT2FIX(ruby_##name)
@@ -44,7 +67,9 @@ const int ruby_level = RUBY_LEVEL;
const char ruby_description[] = RUBY_DESCRIPTION_WITH("");
static const char ruby_description_with_mjit[] = RUBY_DESCRIPTION_WITH(" +MJIT");
static const char ruby_description_with_yjit[] = RUBY_DESCRIPTION_WITH(" +YJIT");
-const char ruby_copyright[] = RUBY_COPYRIGHT;
const char ruby_engine[] = "ruby";
// Might change after initialization