summaryrefslogtreecommitdiffstats
path: root/README.EXT
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-13 14:45:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-13 14:45:21 +0000
commite4abff20447bfaae24de292ca8cadb3dff461f22 (patch)
tree475b4de06c1207289bcdc81c07e0c911e831ffc9 /README.EXT
parent0007a8d13cdf4c9924455974fb852c68f83deac6 (diff)
downloadruby-e4abff20447bfaae24de292ca8cadb3dff461f22.tar.gz
ruby-e4abff20447bfaae24de292ca8cadb3dff461f22.tar.xz
ruby-e4abff20447bfaae24de292ca8cadb3dff461f22.zip
* README.EXT: English adjustment. [ruby-core:08855]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.EXT b/README.EXT
index af1ec2409..2fc2fd606 100644
--- a/README.EXT
+++ b/README.EXT
@@ -98,12 +98,12 @@ an exception will be raised if the conversion failed. NUM2DBL() can
be used to retrieve the double float value in the same way.
In version 1.7 or later it is recommended that you use the new macros
-StringValue() and StringValuePtr(). StringValue(var) replaces var's
-value with the result of "var.to_str()". StringValuePtr(var) does same
-replacement and returns char* representation of var. These macros
-will skip the replacement if var is a String. Notice that the macros
-take only the lvalue as their argument, to change the value
-of var in place.
+StringValue() and StringValuePtr() to get a char* from a VALUE.
+StringValue(var) replaces var's value with the result of "var.to_str()".
+StringValuePtr(var) does same replacement and returns char*
+representation of var. These macros will skip the replacement if var is
+a String. Notice that the macros take only the lvalue as their
+argument, to change the value of var in place.
In version 1.6 or earlier, STR2CSTR() was used to do the same thing
but now it is deprecated in version 1.7, because STR2CSTR() has a risk