aboutsummaryrefslogtreecommitdiffstats
path: root/ext/syck
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/irb.rb (IRB::Irb::eval_input): warn and exit if $SAFE >=3matz2003-06-101-1/+1
| | | | | | | | | | | | | | after input evaluation. * lib/irb.rb (IRB::Irb::eval_input): untaint input string. now irb works for levels 1 and 2. * ext/syck/rubyext.c (syck_loader_transfer): should not use rb_cProc directly, since type_proc may be Proc, Block, or Method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_parser_mark): was a bit heavy on the GC.why2003-06-053-63/+62
| | | | | | | * lib/yaml.rb (YAML::transfer): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: using GC nodes caused segfault. [ruby-core:1071]why2003-06-052-15/+41
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: directives choked on a period.why2003-06-056-193/+317
| | | | | | | | | | * ext/syck/gram.y: anchors work above a collection. [ruby-core:1071] * ext/syck/handler.c, ext/syck/syck.c: ensure a fresh strtable between parser iterations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_mktime): seconds calculated wrong.why2003-05-303-279/+403
| | | | | | | | | | | | * ext/syck/gram.c: flexibility to anchors and transfer methods on collections. * ext/syck/token.c: hex escapes. * lib/yaml/basenode.rb: YamlNode references changed to YAML::BaseNode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: preserve any indentation passed an explicitwhy2003-05-291-63/+61
| | | | | | | indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/handler.c, ext/syck/syck.h: removed syck_fold_format().why2003-05-294-560/+468
| | | | | | | | | * ext/syck/gram.c: flexibility for aliases and anchors. * ext/syck/token.c: folding now handled in the tokenizer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/token.c: single- and double-quoted root-level fix.why2003-05-221-44/+46
| | | | | | | | | | * lib/yaml.rb (YAML::object_maker): can create object attributes (such as found in Exception class) * lib/yaml/rubytypes.rb: roundtripping of Exception and subclasses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_err_handler): raise ArgumentError onwhy2003-05-221-1/+1
| | | | | | | | | | malformed YAML. * lib/yaml/rubytypes.rb: String#to_yaml was missing space indicators at the end of a line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_parser_load): root-level false was returningwhy2003-05-223-118/+114
| | | | | | | | | | | | | nil. * ext/syck/token.c: root-level transfer method bug. * ext/syck/gram.c: root-level empty gave a parse error. * lib/yaml/rubytypes.rb: Symbol#to_yaml generating method call error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.h: define ST_DATA_T_DEFINED for portability.eban2003-05-202-5/+9
| | | | | | | | | | | | | | | | * ext/syck/syck.h: add typedef, st_data_t for Ruby 1.6. * ext/syck/syck.c (syck_st_free_nodes): return int. * ext/syck/syck.c (syck_add_sym): cast the data to st_data_t to avoid error on bcc32. * ext/syck/syck.c (syck_lookup_sym): ditto. * ext/syck/syck.c (syck_free_parser): NULL is not integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/token.c, lib/implicit.c: expanded character set to allow UTF-8,why2003-05-192-1488/+3176
| | | | | | | other Ruby encodings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/syck.c, lib/syck.h, lib/token.c, lib/gram.c: count line numberswhy2003-05-194-69/+72
| | | | | | | only if line pointer has increased. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/gram.c: fixes to one-line documents and end of stream documents.why2003-05-155-172/+190
| | | | | | | | * lib/syck.c, lib/syck.h: add root_on_error to parser struct, specifying the symbol to be returned on a parse error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ruby/ext/syck/rubyext.c, lib/implicit.re: timestamp repairs towhy2003-05-153-580/+596
| | | | | | | | | timezone and milliseconds. * lib/syck.c (syck_parser_reset_levels): duplicate string literal to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/syck.c (syck_parser_pop_level): add prototype.usa2003-05-151-0/+3
| | | | | | | * ext/syck/syck.c (syck_strndup): should return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/gram.c: sequence-in-map shortcut, transfer methods onwhy2003-05-144-108/+188
| | | | | | | | | | | sequence-in-sequence, memory leak in mapping merge. [0.28] * ext/syck/syck.c: memory leak in domain anchoring. [0.28] * lib/yaml/rubytypes.rb, lib/yaml/types.rb: eliminated 1.6.x code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: add prototypes to avoid VC++ warnings.usa2003-05-141-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb, lib/yaml/types.rb: using Object#object_idwhy2003-05-131-7/+7
| | | | | | | | | | | rather than deprecated Object#id. * ext/token.c: changed ASCII escapes to octal notation. * ext/Setup*: added entries for static linking of Syck extension. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/syck/handler.c (syck_hdlr_add_alias): add cast to avoid warning.eban2003-05-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/handler.c: add proper casts.eban2003-05-132-6/+6
| | | | | | | * ext/syck/syck.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb: object and struct loadingwhy2003-05-138-384/+423
| | | | | | | | | * lib/yaml.rb: YAML::detect_implicit will discover typing for a Ruby string * ext/syck/: Fixed portable comments, misuse of NULL and methods without return VALUEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/implicit.c, ext/syck/rubyext.c: transfer methods applied to ↵why2003-05-113-80/+110
| | | | | | | | | | | native loading * ext/syck/token.c: fix for transfer methods on same indentation as nested mapping * lib/yaml/rubytypes.rb: all type names in lowercase git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/gram.c ext/syck/handler.c ext/syck/implicit.cwhy2003-05-106-120/+913
| | | | | | | | | | | | ext/syck/node.c ext/syck/rubyext.c ext/syck/syck.c ext/syck/syck.h ext/syck/token.c: updated to Syck 0.27 * lib/yaml/loader.rb: new YAML::Loader class * lib/yaml.rb: loading of type families leverages YAML::DefaultLoader git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/MANIFEST: new file.eban2003-05-102-0/+14
| | | | | | | * ext/syck/.cvsignore: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial checkin of YAML substances.why2003-05-0910-0/+5899
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e