diff options
| author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-25 15:04:16 +0000 |
|---|---|---|
| committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-25 15:04:16 +0000 |
| commit | 2bfcd1e8e81e263c4be929e7445af2af43a6ce51 (patch) | |
| tree | 9b3ec443dca118b72e7aae59d722e53ca04685ae /ext | |
| parent | 24dedd5255d5aadf874cc94a64b28cb89ec02a16 (diff) | |
| download | ruby-2bfcd1e8e81e263c4be929e7445af2af43a6ce51.tar.gz ruby-2bfcd1e8e81e263c4be929e7445af2af43a6ce51.tar.xz ruby-2bfcd1e8e81e263c4be929e7445af2af43a6ce51.zip | |
* ext/syck/syck.c (syck_new_parser): clear parser on init.
thanks, ts. [ruby-core:02931]
* ext/syck/token.c (sycklex_yaml_utf8): buffer underflow.
thanks, ts. [ruby-core:02929]
* lib/yaml/baseemitter.rb (indent_text): simpler flow block code.
* lib/yaml.rb: added rdoc to beginning of lib.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/syck/syck.c | 1 | ||||
| -rw-r--r-- | ext/syck/token.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c index a4a3bd0c0..5a15ab494 100644 --- a/ext/syck/syck.c +++ b/ext/syck/syck.c @@ -159,6 +159,7 @@ syck_new_parser() { SyckParser *p; p = S_ALLOC( SyckParser ); + S_MEMZERO( p, SyckParser, 1 ); p->lvl_capa = ALLOC_CT; p->levels = S_ALLOC_N( SyckLevel, p->lvl_capa ); p->input_type = syck_yaml_utf8; diff --git a/ext/syck/token.c b/ext/syck/token.c index ac9986f56..ff192f24e 100644 --- a/ext/syck/token.c +++ b/ext/syck/token.c @@ -2297,7 +2297,7 @@ yy215: #line 938 { if ( YYTOKEN == YYLINEPTR ) { - if ( blockType == BLOCK_FOLD ) + if ( blockType == BLOCK_FOLD && qidx > 0 ) { qidx -= 1; } |
