diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-19 05:03:30 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-19 05:03:30 +0000 |
| commit | 1031c207140cd3d3a02305539f128f044e2e006b (patch) | |
| tree | 4027605922fe0f0c9a7659d7d9b6d036b5d1dc27 /ruby.h | |
| parent | d1b83a59efaea9d66be7bb78e5f413305c811177 (diff) | |
* configure.in (DEPRECATED): backported from trunk.
* eval.c (rb_mod_autoload): should use SafeStringValue() instead
obsolete Check_SafeStr().
* ruby.h (rb_check_safe_str, rb_str2cstr): deprecation warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
| -rw-r--r-- | ruby.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -30,6 +30,9 @@ extern "C" { #ifndef NORETURN # define NORETURN(x) x #endif +#ifndef DEPRECATED +# define DEPRECATED(x) x +#endif #ifndef NOINLINE # define NOINLINE(x) x #endif @@ -239,7 +242,7 @@ char *rb_string_value_cstr _((volatile VALUE*)); #define StringValueCStr(v) rb_string_value_cstr(&(v)) void rb_check_safe_obj _((VALUE)); -void rb_check_safe_str _((VALUE)); +DEPRECATED(void rb_check_safe_str _((VALUE))); #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_obj(v);\ @@ -290,7 +293,7 @@ double rb_num2dbl _((VALUE)); #define NUM2DBL(x) rb_num2dbl((VALUE)(x)) /* obsolete API - use StringValue() */ -char *rb_str2cstr _((VALUE,long*)); +DEPRECATED(char *rb_str2cstr _((VALUE,long*))); /* obsolete API - use StringValuePtr() */ #define STR2CSTR(x) rb_str2cstr((VALUE)(x),0) |
