* ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>. [ruby-dev:30806] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
affa7430b7
commit
64bffee8d6
@ -1,3 +1,8 @@
|
|||||||
|
Tue May 22 16:37:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
|
||||||
|
WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>. [ruby-dev:30806]
|
||||||
|
|
||||||
Mon May 21 13:40:00 2007 Koichi Sasada <ko1@atdot.net>
|
Mon May 21 13:40:00 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* compile.c, vm_macro.def: support tail call optimization
|
* compile.c, vm_macro.def: support tail call optimization
|
||||||
|
20
ruby.c
20
ruby.c
@ -1092,18 +1092,18 @@ set_arg0(VALUE val, ID id)
|
|||||||
s = RSTRING_PTR(val);
|
s = RSTRING_PTR(val);
|
||||||
i = RSTRING_LEN(val);
|
i = RSTRING_LEN(val);
|
||||||
#if defined(PSTAT_SETCMD)
|
#if defined(PSTAT_SETCMD)
|
||||||
if (i >= PST_CLEN) {
|
if (i > PST_CLEN) {
|
||||||
union pstun j;
|
union pstun un;
|
||||||
j.pst_command = s;
|
char buf[PST_CLEN + 1]; /* PST_CLEN is 64 (HP-UX 11.23) */
|
||||||
i = PST_CLEN;
|
strncpy(buf, s, PST_CLEN);
|
||||||
RSTRING_LEN(val) = i;
|
buf[PST_CLEN] = '\0';
|
||||||
*(s + i) = '\0';
|
un.pst_command = buf;
|
||||||
pstat(PSTAT_SETCMD, j, PST_CLEN, 0, 0);
|
pstat(PSTAT_SETCMD, un, PST_CLEN, 0, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
union pstun j;
|
union pstun un;
|
||||||
j.pst_command = s;
|
un.pst_command = s;
|
||||||
pstat(PSTAT_SETCMD, j, i, 0, 0);
|
pstat(PSTAT_SETCMD, un, i, 0, 0);
|
||||||
}
|
}
|
||||||
rb_progname = rb_tainted_str_new(s, i);
|
rb_progname = rb_tainted_str_new(s, i);
|
||||||
#elif defined(HAVE_SETPROCTITLE)
|
#elif defined(HAVE_SETPROCTITLE)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#define RUBY_VERSION "1.9.0"
|
#define RUBY_VERSION "1.9.0"
|
||||||
#define RUBY_RELEASE_DATE "2007-05-21"
|
#define RUBY_RELEASE_DATE "2007-05-22"
|
||||||
#define RUBY_VERSION_CODE 190
|
#define RUBY_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20070521
|
#define RUBY_RELEASE_CODE 20070522
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
@ -9,7 +9,7 @@
|
|||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 5
|
#define RUBY_RELEASE_MONTH 5
|
||||||
#define RUBY_RELEASE_DAY 21
|
#define RUBY_RELEASE_DAY 22
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user