[前][次][番号順一覧][スレッド一覧]

ruby-changes:39428

From: nobu <ko1@a...>
Date: Sat, 8 Aug 2015 09:29:28 +0900 (JST)
Subject: [ruby-changes:39428] nobu:r51509 (trunk): transcode_data.h: adjust style

nobu	2015-08-08 09:29:13 +0900 (Sat, 08 Aug 2015)

  New Revision: 51509

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51509

  Log:
    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.

  Modified files:
    trunk/transcode_data.h
Index: transcode_data.h
===================================================================
--- transcode_data.h	(revision 51508)
+++ transcode_data.h	(revision 51509)
@@ -46,10 +46,26 @@ RUBY_SYMBOL_EXPORT_BEGIN https://github.com/ruby/ruby/blob/trunk/transcode_data.h#L46
 #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 https://github.com/ruby/ruby/blob/trunk/transcode_data.h#L86
 #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;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]