summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-29 09:08:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-29 09:08:18 +0000
commit40bc4f5ae4ffe325c36a49e0d3280dbee2a39cee (patch)
tree834cc2146161802fb97d89f0a747ae794048169b /ruby.h
parent3bf972993f689965c857540ec1ccc729477e8e66 (diff)
* array.c (rb_ary_become): should not free ptr if it's shared.
* eval.c (rb_alias): prohibit making an alias named "allocate" if klass is a metaclass. * string.c (rb_string_value_ptr): StringValuePtr() should never return NULL pointer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.h b/ruby.h
index 3b74185f53..7829b85476 100644
--- a/ruby.h
+++ b/ruby.h
@@ -211,6 +211,7 @@ void rb_check_type _((VALUE,int));
VALUE rb_str_to_str _((VALUE));
VALUE rb_string_value _((volatile VALUE*));
+char *rb_string_value_ptr _((volatile VALUE*));
#define StringValue(v) if (TYPE(v) != T_STRING) rb_string_value(&(v))
void rb_check_safe_str _((VALUE));
@@ -218,7 +219,7 @@ void rb_check_safe_str _((VALUE));
StringValue(v);\
rb_check_safe_str(v);\
} while (0)
-#define StringValuePtr(v) RSTRING((TYPE(v) == T_STRING) ? (v) : rb_string_value(&(v)))->ptr
+#define StringValuePtr(v) rb_string_value_ptr(&(v))
/* obsolete macro - use SafeStringValue(v) */
#define Check_SafeStr(v) rb_check_safe_str((VALUE)(v))
td>nobu 2011-05-18* internal.h: add for internal use only.nobu 2011-04-25* random.c (random_rand): remove unused variables.naruse 2010-10-24* array.c, gc.c, hash.c, object.c, string.c, struct.c,nobu 2010-10-19Commit miss.nobu 2010-10-19* test/ruby/test_sprintf.rb: fix ML ref. [ruby-core:32848]nobu 2010-05-17* array.c: Documentation: change => in call-seq to ->.marcandre 2010-05-13* array.c: Harmonize documentation, in particular regarding:marcandre 2009-10-07* include/ruby/ruby.h (rb_long2int): evalates the argument onlynobu 2009-10-06* struct.c (rb_struct_select): Struct#select should returnmatz 2009-10-05* array.c (rb_ary_{times, shuffle_bang, sample}): reducing macromatz 2009-09-20* struct.c (rb_struct_equal, rb_struct_eql): Handle comparison of recursive s...marcandre 2009-09-15* thread.c (rb_exec_recursive_outer, rb_exec_recursive): Added method to shor...marcandre 2009-09-08* include/ruby/st.h (st_hash_func): use st_index_t.nobu 2009-08-12* class.c (rb_define_class_id_under, rb_define_module_id_under):nobu 2009-07-17* struct.c (recursive_hash): extracted from rb_struct_hash. rejectakr 2009-07-01* hash.c (rb_hash_hash): documentation fix. a patch frommatz 2009-05-29* struct.c (Init_Struct): made #to_s an alias to #inspect tonobu 2009-05-20* include/ruby/ruby.h (rb_long2int, RARRAY_LENINT): check long tonobu 2009-05-20* struct.c (rb_struct_new): get rid of too large alloca.nobu 2009-05-19* struct.c (struct_ivar_get): new function to avoid repeatedmatz 2009-02-22stripped trailing spaces.nobu 2009-02-14* string.c (rb_hash_uint32, rb_hash_uint, rb_hash_start, rb_hash_end),mame 2008-11-10* struct.c (rb_struct_initialize_m): avoid unnecessary arraymatz 2008-08-20* range.c (range_initialize_copy): Range is now a Struct.nobu 2008-08-13* object.c (rb_obj_untrusted): new method Object#untrusted?.shugo 2008-06-27* gc.c: __size__ removed. use the length of __members__ instead.akr 2008-05-31* suppress warnings with -Wwrite-string.nobu