ruby-changes:33839
From: akr <ko1@a...>
Date: Sun, 11 May 2014 21:24:19 +0900 (JST)
Subject: [ruby-changes:33839] akr:r45920 (trunk): * pack.c (swaps): Unused macro removed.
akr 2014-05-11 21:24:11 +0900 (Sun, 11 May 2014) New Revision: 45920 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45920 Log: * pack.c (swaps): Unused macro removed. (swapi): Ditto. (swapl): Ditto. (swapll): Ditto. Modified files: trunk/ChangeLog trunk/pack.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45919) +++ ChangeLog (revision 45920) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun May 11 21:23:27 2014 Tanaka Akira <akr@f...> + + * pack.c (swaps): Unused macro removed. + (swapi): Ditto. + (swapl): Ditto. + (swapll): Ditto. + Sun May 11 08:02:49 2014 Eric Wong <e@8...> * vm_core.h (rb_vm_t): list_head and counter for living_threads Index: pack.c =================================================================== --- pack.c (revision 45919) +++ pack.c (revision 45920) @@ -100,38 +100,6 @@ TOKEN_PASTE(swap,x)(xtype z) \ https://github.com/ruby/ruby/blob/trunk/pack.c#L100 return r; \ } -#if SIZEOF_SHORT == 2 -# define swaps(x) swap16(x) -#elif SIZEOF_SHORT == 4 -# define swaps(x) swap32(x) -#else - define_swapx(s,short) -#endif - -#if SIZEOF_INT == 2 -# define swapi(x) swap16(x) -#elif SIZEOF_INT == 4 -# define swapi(x) swap32(x) -#else - define_swapx(i,int) -#endif - -#if SIZEOF_LONG == 4 -# define swapl(x) swap32(x) -#elif SIZEOF_LONG == 8 -# define swapl(x) swap64(x) -#else - define_swapx(l,long) -#endif - -#ifdef HAVE_LONG_LONG -# if SIZEOF_LONG_LONG == 8 -# define swapll(x) swap64(x) -# else - define_swapx(ll,LONG_LONG) -# endif -#endif - #if SIZEOF_FLOAT == 4 && defined(HAVE_INT32_T) # define swapf(x) swap32(x) # define FLOAT_SWAPPER uint32_t -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/