1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* remove trailing spaces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-05 04:08:17 +00:00
parent 1dd7e5690c
commit 94cb1c9b4b
11 changed files with 25 additions and 25 deletions

View file

@ -14,7 +14,7 @@ module DL
if DL.fiddle? if DL.fiddle?
CALL_TYPE_TO_ABI = Hash.new { |h, k| CALL_TYPE_TO_ABI = Hash.new { |h, k|
raise RuntimeError, "unsupported call type: #{k}" raise RuntimeError, "unsupported call type: #{k}"
}.merge({ :stdcall => }.merge({ :stdcall =>
(Fiddle::Function::STDCALL rescue Fiddle::Function::DEFAULT), (Fiddle::Function::STDCALL rescue Fiddle::Function::DEFAULT),
:cdecl => Fiddle::Function::DEFAULT, :cdecl => Fiddle::Function::DEFAULT,
nil => Fiddle::Function::DEFAULT nil => Fiddle::Function::DEFAULT

View file

@ -1,8 +1,8 @@
/* /*
* *
* nkf.h - Header file for nkf * nkf.h - Header file for nkf
* *
* $Id: nkf.h,v 1.6 2008/11/07 02:43:43 naruse Exp $ * $Id$
*/ */
#ifndef NKF_H #ifndef NKF_H

View file

@ -18,8 +18,8 @@ require 'psych/handlers/document_stream'
### ###
# = Overview # = Overview
# #
# Psych is a YAML parser and emitter. # Psych is a YAML parser and emitter.
# Psych leverages libyaml [Home page: http://pyyaml.org/wiki/LibYAML] # Psych leverages libyaml [Home page: http://pyyaml.org/wiki/LibYAML]
# or [Git repo: https://github.com/zerotao/libyaml] for its YAML parsing # or [Git repo: https://github.com/zerotao/libyaml] for its YAML parsing
# and emitting capabilities. In addition to wrapping libyaml, Psych also # and emitting capabilities. In addition to wrapping libyaml, Psych also
# knows how to serialize and de-serialize most Ruby objects to and from # knows how to serialize and de-serialize most Ruby objects to and from

View file

@ -517,7 +517,7 @@ yaml_emitter_emit_stream_start(yaml_emitter_t *emitter,
if (emitter->best_width < 0) { if (emitter->best_width < 0) {
emitter->best_width = INT_MAX; emitter->best_width = INT_MAX;
} }
if (!emitter->line_break) { if (!emitter->line_break) {
emitter->line_break = YAML_LN_BREAK; emitter->line_break = YAML_LN_BREAK;
} }
@ -607,7 +607,7 @@ yaml_emitter_emit_document_start(yaml_emitter_t *emitter,
if (!yaml_emitter_write_indent(emitter)) if (!yaml_emitter_write_indent(emitter))
return 0; return 0;
} }
if (event->data.document_start.tag_directives.start if (event->data.document_start.tag_directives.start
!= event->data.document_start.tag_directives.end) { != event->data.document_start.tag_directives.end) {
implicit = 0; implicit = 0;
@ -721,7 +721,7 @@ yaml_emitter_emit_document_end(yaml_emitter_t *emitter,
} }
/* /*
* *
* Expect a flow item node. * Expect a flow item node.
*/ */
@ -1402,7 +1402,7 @@ yaml_emitter_analyze_anchor(yaml_emitter_t *emitter,
{ {
size_t anchor_length; size_t anchor_length;
yaml_string_t string; yaml_string_t string;
anchor_length = strlen((char *)anchor); anchor_length = strlen((char *)anchor);
STRING_ASSIGN(string, anchor, anchor_length); STRING_ASSIGN(string, anchor, anchor_length);

View file

@ -1295,7 +1295,7 @@ yaml_parser_process_directives(yaml_parser_t *parser,
token = PEEK_TOKEN(parser); token = PEEK_TOKEN(parser);
if (!token) goto error; if (!token) goto error;
} }
for (default_tag_directive = default_tag_directives; for (default_tag_directive = default_tag_directives;
default_tag_directive->handle; default_tag_directive++) { default_tag_directive->handle; default_tag_directive++) {
if (!yaml_parser_append_tag_directive(parser, *default_tag_directive, 1, if (!yaml_parser_append_tag_directive(parser, *default_tag_directive, 1,

View file

@ -52,7 +52,7 @@ yaml_parser_determine_encoding(yaml_parser_t *parser)
{ {
/* Ensure that we had enough bytes in the raw buffer. */ /* 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) { && parser->raw_buffer.last - parser->raw_buffer.pointer < 3) {
if (!yaml_parser_update_raw_buffer(parser)) { if (!yaml_parser_update_raw_buffer(parser)) {
return 0; return 0;
@ -295,7 +295,7 @@ yaml_parser_update_buffer(yaml_parser_t *parser, size_t length)
parser->offset, value); parser->offset, value);
break; break;
case YAML_UTF16LE_ENCODING: case YAML_UTF16LE_ENCODING:
case YAML_UTF16BE_ENCODING: case YAML_UTF16BE_ENCODING:
@ -318,7 +318,7 @@ yaml_parser_update_buffer(yaml_parser_t *parser, size_t length)
* *
* The following formulas are used for decoding * The following formulas are used for decoding
* and encoding characters using surrogate pairs: * and encoding characters using surrogate pairs:
* *
* U = U' + 0x10000 (0x01 00 00 <= U <= 0x10 FF FF) * U = U' + 0x10000 (0x01 00 00 <= U <= 0x10 FF FF)
* U' = yyyyyyyyyyxxxxxxxxxx (0 <= U' <= 0x0F FF FF) * U' = yyyyyyyyyyxxxxxxxxxx (0 <= U' <= 0x0F FF FF)
* W1 = 110110yyyyyyyyyy * W1 = 110110yyyyyyyyyy

View file

@ -762,7 +762,7 @@ yaml_parser_scan(yaml_parser_t *parser, yaml_token_t *token)
} }
/* Fetch the next token from the queue. */ /* Fetch the next token from the queue. */
*token = DEQUEUE(parser, parser->tokens); *token = DEQUEUE(parser, parser->tokens);
parser->token_available = 0; parser->token_available = 0;
parser->tokens_parsed ++; parser->tokens_parsed ++;
@ -1121,7 +1121,7 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
yaml_simple_key_t simple_key; yaml_simple_key_t simple_key;
simple_key.possible = 1; simple_key.possible = 1;
simple_key.required = required; simple_key.required = required;
simple_key.token_number = simple_key.token_number =
parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head); parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
simple_key.mark = parser->mark; simple_key.mark = parser->mark;
@ -1202,7 +1202,7 @@ yaml_parser_decrease_flow_level(yaml_parser_t *parser)
* Push the current indentation level to the stack and set the new level * 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, * the current column is greater than the indentation level. In this case,
* append or insert the specified token into the token queue. * append or insert the specified token into the token queue.
* *
*/ */
static int static int
@ -1935,7 +1935,7 @@ yaml_parser_scan_to_next_token(yaml_parser_t *parser)
* *
* - in the flow context; * - in the flow context;
* - in the block context, but not at the beginning of the line or * - 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; if (!CACHE(parser, 1)) return 0;
@ -3001,7 +3001,7 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
*indent = 1; *indent = 1;
} }
return 1; return 1;
} }
/* /*

View file

@ -74,7 +74,7 @@ yaml_emitter_flush(yaml_emitter_t *emitter)
unsigned int value; unsigned int value;
size_t k; size_t k;
/* /*
* See the "reader.c" code for more details on UTF-8 encoding. Note * 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. * that we assume that the buffer contains a valid UTF-8 sequence.
*/ */

View file

@ -1,7 +1,7 @@
/** /**
* @file yaml.h * @file yaml.h
* @brief Public interface for libyaml. * @brief Public interface for libyaml.
* *
* Include the header file with the code: * Include the header file with the code:
* @code * @code
* #include <yaml.h> * #include <yaml.h>
@ -388,7 +388,7 @@ typedef struct yaml_event_s {
/** The event data. */ /** The event data. */
union { union {
/** The stream parameters (for @c YAML_STREAM_START_EVENT). */ /** The stream parameters (for @c YAML_STREAM_START_EVENT). */
struct { struct {
/** The document encoding. */ /** The document encoding. */
@ -724,7 +724,7 @@ struct yaml_node_s {
/** The node data. */ /** The node data. */
union { union {
/** The scalar parameters (for @c YAML_SCALAR_NODE). */ /** The scalar parameters (for @c YAML_SCALAR_NODE). */
struct { struct {
/** The scalar value. */ /** The scalar value. */

View file

@ -231,9 +231,9 @@ yaml_string_join(
(string).pointer[offset] <= (yaml_char_t) 'f') ? \ (string).pointer[offset] <= (yaml_char_t) 'f') ? \
((string).pointer[offset] - (yaml_char_t) 'a' + 10) : \ ((string).pointer[offset] - (yaml_char_t) 'a' + 10) : \
((string).pointer[offset] - (yaml_char_t) '0')) ((string).pointer[offset] - (yaml_char_t) '0'))
#define AS_HEX(string) AS_HEX_AT((string),0) #define AS_HEX(string) AS_HEX_AT((string),0)
/* /*
* Check if the character is ASCII. * Check if the character is ASCII.
*/ */

View file

@ -586,7 +586,7 @@ class ERB
def add_put_cmd(out, content) def add_put_cmd(out, content)
out.push("#{@put_cmd} #{content_dump(content)}") out.push("#{@put_cmd} #{content_dump(content)}")
end end
def add_insert_cmd(out, content) def add_insert_cmd(out, content)
out.push("#{@insert_cmd}((#{content}).to_s)") out.push("#{@insert_cmd}((#{content}).to_s)")
end end