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

ruby-changes:32734

From: nobu <ko1@a...>
Date: Wed, 5 Feb 2014 10:04:29 +0900 (JST)
Subject: [ruby-changes:32734] nobu:r44813 (trunk): * remove trailing spaces.

nobu	2014-02-05 10:04:25 +0900 (Wed, 05 Feb 2014)

  New Revision: 44813

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

  Log:
    * remove trailing spaces.

  Modified files:
    trunk/ext/psych/yaml/emitter.c
    trunk/ext/psych/yaml/parser.c
    trunk/ext/psych/yaml/reader.c
    trunk/ext/psych/yaml/scanner.c
    trunk/ext/psych/yaml/writer.c
    trunk/ext/psych/yaml/yaml_private.h
Index: ext/psych/yaml/yaml_private.h
===================================================================
--- ext/psych/yaml/yaml_private.h	(revision 44812)
+++ ext/psych/yaml/yaml_private.h	(revision 44813)
@@ -239,9 +239,9 @@ yaml_string_join( https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/yaml_private.h#L239
         (string).pointer[offset] <= (yaml_char_t) 'f') ?                        \
        ((string).pointer[offset] - (yaml_char_t) 'a' + 10) :                    \
        ((string).pointer[offset] - (yaml_char_t) '0'))
- 
+
 #define AS_HEX(string)  AS_HEX_AT((string),0)
- 
+
 /*
  * Check if the character is ASCII.
  */
Index: ext/psych/yaml/reader.c
===================================================================
--- ext/psych/yaml/reader.c	(revision 44812)
+++ ext/psych/yaml/reader.c	(revision 44813)
@@ -52,7 +52,7 @@ yaml_parser_determine_encoding(yaml_pars https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/reader.c#L52
 {
     /* Ensure that we had enough bytes in the raw buffer. */
 
-    while (!parser->eof 
+    while (!parser->eof
             && parser->raw_buffer.last - parser->raw_buffer.pointer < 3) {
         if (!yaml_parser_update_raw_buffer(parser)) {
             return 0;
@@ -295,7 +295,7 @@ yaml_parser_update_buffer(yaml_parser_t https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/reader.c#L295
                                 parser->offset, value);
 
                     break;
-                
+
                 case YAML_UTF16LE_ENCODING:
                 case YAML_UTF16BE_ENCODING:
 
@@ -318,7 +318,7 @@ yaml_parser_update_buffer(yaml_parser_t https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/reader.c#L318
                      *
                      * The following formulas are used for decoding
                      * and encoding characters using surrogate pairs:
-                     * 
+                     *
                      *  U  = U' + 0x10000   (0x01 00 00 <= U <= 0x10 FF FF)
                      *  U' = yyyyyyyyyyxxxxxxxxxx   (0 <= U' <= 0x0F FF FF)
                      *  W1 = 110110yyyyyyyyyy
Index: ext/psych/yaml/emitter.c
===================================================================
--- ext/psych/yaml/emitter.c	(revision 44812)
+++ ext/psych/yaml/emitter.c	(revision 44813)
@@ -517,7 +517,7 @@ yaml_emitter_emit_stream_start(yaml_emit https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L517
         if (emitter->best_width < 0) {
             emitter->best_width = INT_MAX;
         }
-        
+
         if (!emitter->line_break) {
             emitter->line_break = YAML_LN_BREAK;
         }
@@ -607,7 +607,7 @@ yaml_emitter_emit_document_start(yaml_em https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L607
             if (!yaml_emitter_write_indent(emitter))
                 return 0;
         }
-        
+
         if (event->data.document_start.tag_directives.start
                 != event->data.document_start.tag_directives.end) {
             implicit = 0;
@@ -721,7 +721,7 @@ yaml_emitter_emit_document_end(yaml_emit https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L721
 }
 
 /*
- * 
+ *
  * Expect a flow item node.
  */
 
@@ -1402,7 +1402,7 @@ yaml_emitter_analyze_anchor(yaml_emitter https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L1402
 {
     size_t anchor_length;
     yaml_string_t string;
-    
+
     anchor_length = strlen((char *)anchor);
     STRING_ASSIGN(string, anchor, anchor_length);
 
Index: ext/psych/yaml/scanner.c
===================================================================
--- ext/psych/yaml/scanner.c	(revision 44812)
+++ ext/psych/yaml/scanner.c	(revision 44813)
@@ -762,7 +762,7 @@ yaml_parser_scan(yaml_parser_t *parser, https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L762
     }
 
     /* Fetch the next token from the queue. */
-    
+
     *token = DEQUEUE(parser, parser->tokens);
     parser->token_available = 0;
     parser->tokens_parsed ++;
@@ -1121,7 +1121,7 @@ yaml_parser_save_simple_key(yaml_parser_ https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L1121
         yaml_simple_key_t simple_key;
         simple_key.possible = 1;
         simple_key.required = required;
-        simple_key.token_number = 
+        simple_key.token_number =
             parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
         simple_key.mark = parser->mark;
 
@@ -1207,7 +1207,7 @@ yaml_parser_decrease_flow_level(yaml_par https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L1207
  * Push the current indentation level to the stack and set the new level
  * the current column is greater than the indentation level.  In this case,
  * append or insert the specified token into the token queue.
- * 
+ *
  */
 
 static int
@@ -1945,7 +1945,7 @@ yaml_parser_scan_to_next_token(yaml_pars https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L1945
          *
          *  - in the flow context;
          *  - in the block context, but not at the beginning of the line or
-         *  after '-', '?', or ':' (complex value).  
+         *  after '-', '?', or ':' (complex value).
          */
 
         if (!CACHE(parser, 1)) return 0;
@@ -3011,7 +3011,7 @@ yaml_parser_scan_block_scalar_breaks(yam https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L3011
             *indent = 1;
     }
 
-   return 1; 
+   return 1;
 }
 
 /*
Index: ext/psych/yaml/parser.c
===================================================================
--- ext/psych/yaml/parser.c	(revision 44812)
+++ ext/psych/yaml/parser.c	(revision 44813)
@@ -1295,7 +1295,7 @@ yaml_parser_process_directives(yaml_pars https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/parser.c#L1295
         token = PEEK_TOKEN(parser);
         if (!token) goto error;
     }
-    
+
     for (default_tag_directive = default_tag_directives;
             default_tag_directive->handle; default_tag_directive++) {
         if (!yaml_parser_append_tag_directive(parser, *default_tag_directive, 1,
Index: ext/psych/yaml/writer.c
===================================================================
--- ext/psych/yaml/writer.c	(revision 44812)
+++ ext/psych/yaml/writer.c	(revision 44813)
@@ -74,7 +74,7 @@ yaml_emitter_flush(yaml_emitter_t *emitt https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/writer.c#L74
         unsigned int value;
         size_t k;
 
-        /* 
+        /*
          * See the "reader.c" code for more details on UTF-8 encoding.  Note
          * that we assume that the buffer contains a valid UTF-8 sequence.
          */

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

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