ruby-changes:53531
From: nobu <ko1@a...>
Date: Fri, 16 Nov 2018 09:25:58 +0900 (JST)
Subject: [ruby-changes:53531] nobu:r65747 (trunk): pack.c: adjust indent [ci skip]
nobu 2018-11-16 09:25:53 +0900 (Fri, 16 Nov 2018) New Revision: 65747 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65747 Log: pack.c: adjust indent [ci skip] Modified files: trunk/pack.c Index: pack.c =================================================================== --- pack.c (revision 65746) +++ pack.c (revision 65747) @@ -42,20 +42,20 @@ static const char endstr[] = "sSiIlLqQjJ https://github.com/ruby/ruby/blob/trunk/pack.c#L42 #endif #ifdef DYNAMIC_ENDIAN - /* for universal binary of NEXTSTEP and MacOS X */ - /* useless since autoconf 2.63? */ - static int - is_bigendian(void) - { - static int init = 0; - static int endian_value; - char *p; - - if (init) return endian_value; - init = 1; - p = (char*)&init; - return endian_value = p[0]?0:1; - } +/* for universal binary of NEXTSTEP and MacOS X */ +/* useless since autoconf 2.63? */ +static int +is_bigendian(void) +{ + static int init = 0; + static int endian_value; + char *p; + + if (init) return endian_value; + init = 1; + p = (char*)&init; + return endian_value = p[0]?0:1; +} # define BIGENDIAN_P() (is_bigendian()) #elif defined(WORDS_BIGENDIAN) # define BIGENDIAN_P() 1 @@ -839,9 +839,9 @@ pack_pack(int argc, VALUE *argv, VALUE a https://github.com/ruby/ruby/blob/trunk/pack.c#L839 cp = RSTRING_PTR(buf); while (1 < numbytes) { - *cp |= 0x80; - cp++; - numbytes--; + *cp |= 0x80; + cp++; + numbytes--; } rb_str_buf_cat(res, RSTRING_PTR(buf), RSTRING_LEN(buf)); @@ -1005,7 +1005,7 @@ hex2num(char c) https://github.com/ruby/ruby/blob/trunk/pack.c#L1005 tmp_len = 0; \ if (len > (long)((send-s)/(sz))) { \ if (!star) { \ - tmp_len = len-(send-s)/(sz); \ + tmp_len = len-(send-s)/(sz); \ } \ len = (send-s)/(sz); \ } \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/