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

* gc.c (Init_stack): prefer address of argument rather than local

variable to initialize rb_gc_stack_start.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-10-03 11:24:24 +00:00
parent 4b6dffad02
commit e6bb432c83
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
Thu Oct 3 20:16:12 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
Thu Oct 3 20:22:11 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* bcc32/mkexports.rb: to work on cygwin via telnet.
[ruby-win32:358]
@ -16,6 +16,9 @@ Thu Oct 3 20:16:12 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* eval.c (rb_f_require): set source file name for extension
libraries. [ruby-dev:18445]
* gc.c (Init_stack): prefer address of argument rather than local
variable to initialize rb_gc_stack_start.
* ruby.c (translate_char): translate a character in a string;
DOSISH only. [ruby-dev:18274]

4
gc.c
View file

@ -1225,9 +1225,7 @@ Init_stack(addr)
extern void *_SEND;
rb_gc_stack_start = _SEND;
#else
VALUE start;
if (!addr) addr = &start;
if (!addr) addr = (VALUE *)&addr;
rb_gc_stack_start = addr;
#endif
#ifdef HAVE_GETRLIMIT