summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-22 06:14:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-22 06:14:50 +0000
commit333fccd1985af686b2c51a8ca451a4ecb375f8c9 (patch)
tree8e14d160816e959172bcbb3db6e9660b009394df /include/ruby
parent0cdbc9fce1e367a7ea78e10a7212f4ff3f20b0a8 (diff)
downloadruby-333fccd1985af686b2c51a8ca451a4ecb375f8c9.tar.gz
ruby-333fccd1985af686b2c51a8ca451a4ecb375f8c9.tar.xz
ruby-333fccd1985af686b2c51a8ca451a4ecb375f8c9.zip
* common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.
* configure.in (STRINGIZE): stringizing macro. * include/ruby/defines.h (STRINGIZE): fallback. * tool/make-snapshot: new file. * version.c (ruby_description, ruby_copyright): string constants for -v option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/defines.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index 2fb42219f..bd9dd0c33 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -64,6 +64,11 @@ void *xrealloc(void*,size_t);
void *xrealloc2(void*,size_t,size_t);
void xfree(void*);
+#define STRINGIZE(expr) STRINGIZE0(expr)
+#ifndef STRINGIZE0
+#define STRINGIZE0(expr) #expr
+#endif
+
#if SIZEOF_LONG_LONG > 0
# define LONG_LONG long long
#elif SIZEOF___INT64 > 0