diff options
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/README.EXT b/README.EXT index 2fc2fd606a..283de48b7f 100644 --- a/README.EXT +++ b/README.EXT @@ -115,10 +115,10 @@ can be cast to retrieve the pointer to the struct. The casting macro will be of the form RXXXX for each data type; for instance, RARRAY(obj). See "ruby.h". -For example, `RSTRING(str)->len' is the way to get the size of the -Ruby String object. The allocated region can be accessed by -`RSTRING(str)->ptr'. For arrays, use `RARRAY(ary)->len' and -`RARRAY(ary)->ptr' respectively. +There are some accessing macros for structure members, for example +`RSTRING_LEN(s)' to to get the size of the Ruby String object. The +allocated region can be accessed by `RSTRING_PTR(str). For arrays, use +`RARRAY_LEN(ary) and `RARRAY_PTR(ary) respectively. Notice: Do not change the value of the structure directly, unless you are responsible for the result. This ends up being the cause of interesting |