mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby.h: no $
* include/ruby/ruby.h (ruby_safe_level_4): get rid of special character. [ruby-dev:47512] [misc #8646] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6429bbad59
commit
0ef059b217
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Jul 18 15:11:11 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* include/ruby/ruby.h (ruby_safe_level_4): get rid of special
|
||||||
|
character. [ruby-dev:47512] [misc #8646]
|
||||||
|
|
||||||
Thu Jul 18 14:51:39 2013 Koichi Sasada <ko1@atdot.net>
|
Thu Jul 18 14:51:39 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* array.c (ary_alloc): slim setup process.
|
* array.c (ary_alloc): slim setup process.
|
||||||
|
|
|
@ -567,12 +567,12 @@ void rb_secure(int);
|
||||||
int rb_safe_level(void);
|
int rb_safe_level(void);
|
||||||
void rb_set_safe_level(int);
|
void rb_set_safe_level(int);
|
||||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
|
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
|
||||||
int ruby$safe_level$4(void) __attribute__((error("$SAFE=4 is obsolete")));
|
int ruby_safe_level_4(void) __attribute__((error("$SAFE=4 is obsolete")));
|
||||||
#define RUBY_SAFE_LEVEL_INVALID_P(level) \
|
#define RUBY_SAFE_LEVEL_INVALID_P(level) \
|
||||||
__extension__(__builtin_constant_p(level) && \
|
__extension__(__builtin_constant_p(level) && \
|
||||||
((level) < 0 || RUBY_SAFE_LEVEL_MAX < (level)))
|
((level) < 0 || RUBY_SAFE_LEVEL_MAX < (level)))
|
||||||
#define RUBY_SAFE_LEVEL_CHECK(level) \
|
#define RUBY_SAFE_LEVEL_CHECK(level) \
|
||||||
(RUBY_SAFE_LEVEL_INVALID_P(level) ? ruby$safe_level$4() : (level))
|
(RUBY_SAFE_LEVEL_INVALID_P(level) ? ruby_safe_level_4() : (level))
|
||||||
#define rb_secure(level) rb_secure(RUBY_SAFE_LEVEL_CHECK(level))
|
#define rb_secure(level) rb_secure(RUBY_SAFE_LEVEL_CHECK(level))
|
||||||
#define rb_set_safe_level(level) rb_set_safe_level(RUBY_SAFE_LEVEL_CHECK(level))
|
#define rb_set_safe_level(level) rb_set_safe_level(RUBY_SAFE_LEVEL_CHECK(level))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue