pack.c: adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ecb959bd8b
commit
6a6d03791b
12
pack.c
12
pack.c
@ -42,11 +42,11 @@ 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)
|
||||
{
|
||||
/* 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;
|
||||
@ -55,7 +55,7 @@ static const char endstr[] = "sSiIlLqQjJ";
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user