transcode_data.h: adjust style

* transcode_data.h (o2, o3, o4, g4): fold long lines.

* transcode_data.h (rb_transcoder_asciicompat_type_t): adjust
  indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-08-08 00:29:13 +00:00
Родитель f47473acd1
Коммит b0e866a53d
1 изменённых файлов: 23 добавлений и 7 удалений

Просмотреть файл

@ -46,10 +46,26 @@ RUBY_SYMBOL_EXPORT_BEGIN
#define makeSTR1LEN(len) ((len)-4)
#define o1(b1) (PType((((unsigned char)(b1))<<8)|ONEbt))
#define o2(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|TWObt))
#define o3(b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|(((unsigned int)(unsigned char)(b3))<<24)|THREEbt)&0xffffffffU))
#define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|(((unsigned char)(b3))<<24)|((((unsigned char)(b0))&0x07)<<5)|FOURbt)&0xffffffffU))
#define g4(b0,b1,b2,b3) (PType(((((unsigned char)(b0))<<8)|(((unsigned char)(b2))<<16)|((((unsigned char)(b1))&0x0f)<<24)|((((unsigned int)(unsigned char)(b3))&0x0f)<<28)|GB4bt)&0xffffffffU))
#define o2(b1,b2) (PType((((unsigned char)(b1))<<8)|\
(((unsigned char)(b2))<<16)|\
TWObt))
#define o3(b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
(((unsigned char)(b2))<<16)|\
(((unsigned int)(unsigned char)(b3))<<24)|\
THREEbt)&\
0xffffffffU))
#define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
(((unsigned char)(b2))<<16)|\
(((unsigned char)(b3))<<24)|\
((((unsigned char)(b0))&0x07)<<5)|\
FOURbt)&\
0xffffffffU))
#define g4(b0,b1,b2,b3) (PType(((((unsigned char)(b0))<<8)|\
(((unsigned char)(b2))<<16)|\
((((unsigned char)(b1))&0x0f)<<24)|\
((((unsigned int)(unsigned char)(b3))&0x0f)<<28)|\
GB4bt)&\
0xffffffffU))
#define funsio(diff) (PType((((unsigned int)(diff))<<8)|FUNsio))
#define getBT1(a) ((unsigned char)((a)>> 8))
@ -70,9 +86,9 @@ RUBY_SYMBOL_EXPORT_BEGIN
#define THREETRAIL /* legal but undefined if three more trailing UTF-8 */
typedef enum {
asciicompat_converter, /* ASCII-compatible -> ASCII-compatible */
asciicompat_decoder, /* ASCII-incompatible -> ASCII-compatible */
asciicompat_encoder /* ASCII-compatible -> ASCII-incompatible */
asciicompat_converter, /* ASCII-compatible -> ASCII-compatible */
asciicompat_decoder, /* ASCII-incompatible -> ASCII-compatible */
asciicompat_encoder /* ASCII-compatible -> ASCII-incompatible */
/* ASCII-incompatible -> ASCII-incompatible is intentionally omitted. */
} rb_transcoder_asciicompat_type_t;