diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-16 00:25:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-16 00:25:53 +0000 |
commit | 6a6d03791b53d5363a2b09cde3847f4992dbe53c (patch) | |
tree | 5a4358ccd0c64ed36f444f183e99ebd239ccd658 /pack.c | |
parent | ecb959bd8bfb9556f19e7294d85a997a037df6ba (diff) | |
download | ruby-6a6d03791b53d5363a2b09cde3847f4992dbe53c.tar.gz |
pack.c: adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -42,20 +42,20 @@ static const char endstr[] = "sSiIlLqQjJ"; #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 ary) 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) 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); \ } \ |