ruby-changes:43115
From: hsbt <ko1@a...>
Date: Sat, 28 May 2016 10:46:30 +0900 (JST)
Subject: [ruby-changes:43115] hsbt:r55189 (trunk): * addr2line.c: drop to support ATARI ST platform. It was discontinued
hsbt 2016-05-28 10:46:27 +0900 (Sat, 28 May 2016) New Revision: 55189 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55189 Log: * addr2line.c: drop to support ATARI ST platform. It was discontinued more than two decades ago. [fix GH-1350] Patch by @cremno * include/ruby/ruby.h: ditto. * io.c: ditto. Modified files: trunk/ChangeLog trunk/addr2line.c trunk/include/ruby/ruby.h trunk/io.c Index: io.c =================================================================== --- io.c (revision 55188) +++ io.c (revision 55189) @@ -9297,7 +9297,7 @@ rb_io_fcntl(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/io.c#L9297 * +String+ objects or +Integer+ objects. A +String+ object is passed * as a pointer to the byte sequence. An +Integer+ object is passed * as an integer whose bit size is same as a pointer. - * Up to nine parameters may be passed (14 on the Atari-ST). + * Up to nine parameters may be passed. * * The function identified by _num_ is system * dependent. On some Unix systems, the numbers may be obtained from a @@ -9321,11 +9321,7 @@ rb_io_fcntl(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/io.c#L9321 static VALUE rb_f_syscall(int argc, VALUE *argv) { -#ifdef atarist - VALUE arg[13]; /* yes, we really need that many ! */ -#else VALUE arg[8]; -#endif #if SIZEOF_VOIDP == 8 && defined(HAVE___SYSCALL) && SIZEOF_INT != 8 /* mainly *BSD */ # define SYSCALL __syscall # define NUM2SYSCALLID(x) NUM2LONG(x) @@ -9404,32 +9400,6 @@ rb_f_syscall(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/io.c#L9400 case 8: retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6]); break; -#ifdef atarist - case 9: - retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6], - arg[7]); - break; - case 10: - retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6], - arg[7], arg[8]); - break; - case 11: - retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6], - arg[7], arg[8], arg[9]); - break; - case 12: - retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6], - arg[7], arg[8], arg[9], arg[10]); - break; - case 13: - retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6], - arg[7], arg[8], arg[9], arg[10], arg[11]); - break; - case 14: - retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6], - arg[7], arg[8], arg[9], arg[10], arg[11], arg[12]); - break; -#endif } if (retval == -1) Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 55188) +++ include/ruby/ruby.h (revision 55189) @@ -58,11 +58,9 @@ RUBY_SYMBOL_EXPORT_BEGIN https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L58 /* Make alloca work the best possible way. */ #ifdef __GNUC__ -# ifndef atarist -# ifndef alloca -# define alloca __builtin_alloca -# endif -# endif /* atarist */ +# ifndef alloca +# define alloca __builtin_alloca +# endif #else # ifdef HAVE_ALLOCA_H # include <alloca.h> Index: addr2line.c =================================================================== --- addr2line.c (revision 55188) +++ addr2line.c (revision 55189) @@ -36,11 +36,9 @@ https://github.com/ruby/ruby/blob/trunk/addr2line.c#L36 /* Make alloca work the best possible way. */ #ifdef __GNUC__ -# ifndef atarist -# ifndef alloca -# define alloca __builtin_alloca -# endif -# endif /* atarist */ +# ifndef alloca +# define alloca __builtin_alloca +# endif #else # ifdef HAVE_ALLOCA_H # include <alloca.h> Index: ChangeLog =================================================================== --- ChangeLog (revision 55188) +++ ChangeLog (revision 55189) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat May 28 10:45:40 2016 SHIBATA Hiroshi <hsbt@r...> + + * addr2line.c: drop to support ATARI ST platform. It was discontinued + more than two decades ago. [fix GH-1350] Patch by @cremno + * include/ruby/ruby.h: ditto. + * io.c: ditto. + Sat May 28 10:39:47 2016 Martin Duerst <duerst@i...> * test/ruby/enc/test_case_comprehensive.rb: Converted exception for -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/