1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/ruby.h (FilePathValue): prevent from GC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-05-25 20:39:30 +00:00
parent a273dc9b16
commit 5a9f87f179
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
Tue May 26 05:38:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Tue May 26 05:39:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (FilePathValue): prevent from GC.
* include/ruby/ruby.h (NUM2LONG): added GCC specific optimization. * include/ruby/ruby.h (NUM2LONG): added GCC specific optimization.

View file

@ -417,7 +417,7 @@ VALUE rb_str_export(VALUE);
VALUE rb_str_export_locale(VALUE); VALUE rb_str_export_locale(VALUE);
VALUE rb_get_path(VALUE); VALUE rb_get_path(VALUE);
#define FilePathValue(v) ((v) = rb_get_path(v)) #define FilePathValue(v) (RB_GC_GUARD(v) = rb_get_path(v))
VALUE rb_get_path_no_checksafe(VALUE); VALUE rb_get_path_no_checksafe(VALUE);
#define FilePathStringValue(v) ((v) = rb_get_path_no_checksafe(v)) #define FilePathStringValue(v) ((v) = rb_get_path_no_checksafe(v))