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

* array.c (rb_ary_transpose): Properly declare ary as a VALUE.

* file.c (rb_file_s_chmod): Do not directly cast an int to void *
  to avoid a warning.

* defines.h (FLUSH_REGISTER_WINDOWS): Add support for
  FreeBSD/sparc64.  miniruby still coredumps in a different place,
  though.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2002-12-31 10:28:52 +00:00
parent 559ca6258a
commit 653b0c120f
4 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,14 @@
Tue Dec 31 19:21:02 2002 Akinori MUSHA <knu@iDaemons.org>
* array.c (rb_ary_transpose): Properly declare ary as a VALUE.
* file.c (rb_file_s_chmod): Do not directly cast an int to void *
to avoid a warning.
* defines.h (FLUSH_REGISTER_WINDOWS): Add support for
FreeBSD/sparc64. miniruby still coredumps in a different place,
though.
Tue Dec 31 07:47:15 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net> Tue Dec 31 07:47:15 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (parse_string): readjusted. * parse.y (parse_string): readjusted.

View file

@ -1334,6 +1334,7 @@ rb_ary_zip(argc, argv, ary)
static VALUE static VALUE
rb_ary_transpose(ary) rb_ary_transpose(ary)
VALUE ary;
{ {
long elen = -1, alen, i, j; long elen = -1, alen, i, j;
VALUE tmp, result; VALUE tmp, result;

View file

@ -140,7 +140,9 @@ void xfree _((void*));
#if defined(sparc) || defined(__sparc__) #if defined(sparc) || defined(__sparc__)
# if defined(linux) || defined(__linux__) # if defined(linux) || defined(__linux__)
#define FLUSH_REGISTER_WINDOWS asm("ta 0x83") #define FLUSH_REGISTER_WINDOWS asm("ta 0x83")
# else /* Solaris, not sparc linux */ # elif defined(__FreeBSD__) && defined(__sparc64__)
#define FLUSH_REGISTER_WINDOWS asm volatile("flushw" : :)
# else /* Solaris, OpenBSD, NetBSD, etc. */
#define FLUSH_REGISTER_WINDOWS asm("ta 0x03") #define FLUSH_REGISTER_WINDOWS asm("ta 0x03")
# endif /* trap always to flush register windows if we are on a Sparc system */ # endif /* trap always to flush register windows if we are on a Sparc system */
#else /* Not a sparc, so */ #else /* Not a sparc, so */

2
file.c
View file

@ -990,7 +990,7 @@ rb_file_s_chmod(argc, argv)
rb_scan_args(argc, argv, "1*", &vmode, &rest); rb_scan_args(argc, argv, "1*", &vmode, &rest);
mode = NUM2INT(vmode); mode = NUM2INT(vmode);
n = apply2files(chmod_internal, rest, (void *)mode); n = apply2files(chmod_internal, rest, (void *)(long)mode);
return LONG2FIX(n); return LONG2FIX(n);
} }