summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-08 00:29:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-08 00:29:13 +0000
commitb0e866a53db4f2dbb9af48043c23d224eaf8a477 (patch)
tree23d0da879a7f2964d08839e65783b5a4becfeaec /transcode_data.h
parentf47473acd11e4d822696c175bdb5fe142ee46ee9 (diff)
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
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/transcode_data.h b/transcode_data.h
index fcb05cc39f..4dd10abb89 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -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;