summaryrefslogtreecommitdiff
path: root/ext/syck/emitter.c
AgeCommit message (Collapse)Author
2006-05-03* ext/syck/emitter.c (syck_scan_scalar): avoid accessingmatz
uninitialized array element. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07809] * array.c (rb_ary_fill): initialize local variables first. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02* ext/syck/emitter.c (syck_emitter_write): should not set '\0' onocean
emitter's marker. if marker points to the end of buffer, this causes buffer overrun. (ex: YAML.dump("." * 12288)) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-16* ext/syck/emitter.c (syck_emit_seq, syck_emit_map, syck_emit_item):ocean
should output complex key mark even if map's key is empty seq/map. [ruby-core:7129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20* ext/syck/emitter.c (syck_scan_scalar): prevent indicators fromwhy
appearing alone or at the end of plain scalars. [ruby-core:5826] * ext/syck/emitter.c (syck_emit_scalar): treat typed scalar nodes as complex keys. * lib/syck.h: version 0.60. * lib/yaml/basenode.rb (YAML::BaseNode#at): transform keys during key searches. * ext/syck/rubyext.c: loading of binary-typed nodes. prevent emission of plain strings that look like symbols, but which aren't. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19* ext/syck/emitter.c (syck_emit): passing an int* value to the long* ↵aamine
parameter causes unaligned access on LP64 systems. [ruby-dev:27161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17* lib/yaml/rubytypes.rb: remove comments that are bungling upwhy
the rdoc and ri output. output symbols as plain scalars. * ext/syck/rubyext.c (syck_emitter_reset): emit headless documents always. * ext/syck/emitter.c (syck_scan_scalar): quote scalars with any kind of surrounding line space, tabs or spaces alike. * ext/syck/token.c: accept tabs as whitespace, not for indentation, but strip from plain scalars. * test/yaml/test_yaml.rb: remove outdated tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13* lib/yaml.rb: reworking YAML::Stream to use the newwhy
emitter. * lib/yaml/stream.rb: ditto. * lib/yaml/rubytypes.rb: added Object#yaml_new. * lib/yaml/tag.rb: the tag_subclasses? method now shows up in the class. allow taguri to be set using an accessor. continue support of Object#to_yaml_type. * ext/syck/rubyext.c: new emitter code. yaml_new and yaml_initialize get called, should they be present. consolidated all the diaspora of internal node types into the family below YAML::Syck::Node -- Map, Seq, Scalar -- all of whom are SyckNode structs pointing to Ruby data. moved Object#yaml_new into the node_import and made it the default behavior. the target_class is always called wih yaml_new, prepended a parameter, which is the klass. loaded nodes through GenericResolver show their style. new Resolver#tagurize converts type ids to taguris. * ext/syck/implicit.re: were 'y' and 'n' seriously omitted?? * ext/syck/emitter.c: renovated emitter, walks the tree in advance. consolidated redundant block_styles struct into the scalar_style struct. (this means loaded nodes can now be sent back to emitter and preserve at least its very basic formatting.) * ext/syck/gram.c: headless documents of any kind allowed. * ext/syck/node.c: new syck_replace_str methods and syck_empty_* methods for rewriting node contents, while keeping the ID and other setup info. added syck_seq_assign. * ext/syck/syck.h: reflect block_styles and new node functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06* lib/yaml/rubytypes.rb (to_yaml): added instance variable handlingwhy
for Ranges, Strings, Structs, Regexps. * lib/yaml/rubytypes.rb (to_yaml_fold): new method for setting a String's flow style. * lib/yaml.rb (YAML::object_maker): now uses Object.allocate. * ext/syck/gram.c: fixed transfer methods on structs, broke it last commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06* eval.c (rb_mod_modfunc): should break if m has no super class.matz
[ruby-dev:22498] * backport changes from 1.9 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-21* ext/syck/emitter.c (syck_emitter_write): str bigger thanmatz
e->bufsize causes buffer overflow. [ruby-dev:22307] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-21C++/C99 style comments are not allowed yet. (ruby-bugs:PR#1184)nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14* ext/syck/bytecode.c: Checkin of YAML bytecode support.why
* ext/syck/gram.c: Ditto. * ext/syck/syck.c: Ditto. * ext/syck/token.c: Ditto. * ext/syck/handler.c: Ditto. * ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs. * ext/syck/rubyext.c: Ditto (on both counts). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-26* implicit.c (syck_type_id_to_taguri): corrected detection ofwhy
x-private types. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-28* ext/syck/syck.h: Added 'syck' yacc prefixes.why
* ext/syck/gram.c: ditto. * ext/syck/token.c: ditto. * ext/syck: Added ruby.h reference to source files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-25* ext/socket/socket.c (tcp_s_gethostbyname): was usingmatz
uninitialized size_t value. [ruby-talk:76946] * Minor cleanups. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-24* ext/syck/emitter.c (syck_emitter_flush): accepts countwhy
of bytes to flush. anchor offsets now functional. * ext/syck/syck.h (syck_emitter_flush): ditto. * ext/syck/rubyext.c: ditto. * ext/syck/token.c: URI escaping now supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-15* ext/syck/emitter.c (syck_emitter_start_obj): cast to avoid warning.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-11Missed MANIFEST change and addition of ext/syck/emitter.c.why
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e