ruby-changes:28093
From: nobu <ko1@a...>
Date: Sat, 6 Apr 2013 09:54:33 +0900 (JST)
Subject: [ruby-changes:28093] nobu:r40145 (trunk): pack.c: fix definition order
nobu 2013-04-06 09:54:23 +0900 (Sat, 06 Apr 2013) New Revision: 40145 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40145 Log: pack.c: fix definition order * pack.c (NATINT_LEN): fix definition order, must be after NATINT_PACK. Modified files: trunk/ChangeLog trunk/pack.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40144) +++ ChangeLog (revision 40145) @@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Apr 6 09:54:20 2013 Nobuyoshi Nakada <nobu@r...> + + * pack.c (NATINT_LEN): fix definition order, must be after + NATINT_PACK. + +Sat Apr 6 09:47:37 2013 Nobuyoshi Nakada <nobu@r...> + + * pack.c (NATINT_LEN): fix definition order, must be after + NATINT_PACK. + Sat Apr 6 03:11:07 2013 Aaron Patterson <aaron@t...> * ext/psych/lib/psych/visitors/yaml_tree.rb: fix symbol keys in coder Index: pack.c =================================================================== --- pack.c (revision 40144) +++ pack.c (revision 40145) @@ -36,12 +36,6 @@ static const char natstr[] = "sSiIlL"; https://github.com/ruby/ruby/blob/trunk/pack.c#L36 #endif static const char endstr[] = "sSiIlLqQ"; -#ifdef NATINT_PACK -# define NATINT_LEN(type,len) (natint?(int)sizeof(type):(int)(len)) -#else -# define NATINT_LEN(type,len) ((int)sizeof(type)) -#endif - #ifdef HAVE_TRUE_LONG_LONG /* It is intentional to use long long instead of LONG_LONG. */ # define NATINT_LEN_Q NATINT_LEN(long long, 8) @@ -75,6 +69,12 @@ static const char endstr[] = "sSiIlLqQ"; https://github.com/ruby/ruby/blob/trunk/pack.c#L69 # define BIGENDIAN_P() 0 #endif +#ifdef NATINT_PACK +# define NATINT_LEN(type,len) (natint?(int)sizeof(type):(int)(len)) +#else +# define NATINT_LEN(type,len) ((int)sizeof(type)) +#endif + #if SIZEOF_LONG == 8 # define INT64toNUM(x) LONG2NUM(x) # define UINT64toNUM(x) ULONG2NUM(x) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/