summaryrefslogtreecommitdiffstats
path: root/ext/syck
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.usa2003-10-151-0/+1
| | | | | | | * ext/syck/syck.h: include stdio.h for definition of FILE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/bytecode.c: Checkin of YAML bytecode support.why2003-10-1411-3647/+2613
| | | | | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@4769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: default keys handled.why2003-10-032-10/+25
| | | | | | | | | | * ext/syck/syck.h: lowered default buffer size to 16k for increased performance. * test/yaml: checkin of basic unit tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: headerless documents with root-level spacing nowwhy2003-09-031-546/+562
| | | | | | | honored. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * implicit.c (syck_type_id_to_taguri): corrected detection ofwhy2003-08-262-79/+84
| | | | | | | x-private types. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: refactoring of the transfer methodwhy2003-08-213-641/+754
| | | | | | | | | | | | | | | dispatch. added yaml_org_handler for faster dispatch of transfers to base types. * lib/yaml/rubytypes.rb: removed handling of builtins from Ruby library. * ext/syck/token.c: quoted and block scalars are now implicit !str * ext/syck/implicit.c: empty string detected as !null. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/syck.h: Parser definition problems on HP-UX. [ruby-talk:79389]why2003-08-194-49/+53
| | | | | | | | | | | * ext/syck/handler.c (syck_hdlr_get_anchor): Memory leak. * ext/syck/syck.s (syck_io_file_read): Bad arguments to fread. * ext/syck/rubyext.c: Tainting issues. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_emitter_write_m): forgot to declarematz2003-08-011-4/+4
| | | | | | | | | | | "self", making it default to "int". * ext/syck/rubyext.c (syck_emitter_simple_write): ditto. * gc.c (rb_gc): should mark backing store region on IA64. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: prefixed many constants and definitions with YAML_ towhy2003-07-293-95/+97
| | | | | | | | | | | avoid name clash. * ext/syck/gram.c: ditto. * ext/syck/gram.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/syck.h: Added 'syck' yacc prefixes.why2003-07-289-132/+215
| | | | | | | | | | | * ext/syck/gram.c: ditto. * ext/syck/token.c: ditto. * ext/syck: Added ruby.h reference to source files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (tcp_s_gethostbyname): was usingmatz2003-07-251-1/+1
| | | | | | | | | uninitialized size_t value. [ruby-talk:76946] * Minor cleanups. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c (syck_emitter_flush): accepts countwhy2003-07-244-117/+237
| | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@4149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c (syck_emitter_start_obj): cast to avoid warning.eban2003-07-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_mark_emitter): forgot to rb_gc_mark thewhy2003-07-141-1/+5
| | | | | | | outgoing IO object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Missed MANIFEST change and addition of ext/syck/emitter.c.why2003-07-112-0/+318
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c: new emitter code.why2003-07-113-29/+285
| | | | | | | | | | | | | | | | | * ext/syck/rubyext.c: Emitter class. * lib/yaml.rb: Load Syck emitter, if available. * lib/yaml/stream.rb: ditto. * lib/yaml/baseemitter.rb: underlying class for all emitters. * lib/yaml/rubytypes.rb: use BaseEmitter abstraction. * lib/yaml/emitter.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-07-044-121/+137
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_load_handler): merge key implemented.why2003-06-181-14/+86
| | | | | | | | | | | | | | * ext/syck/rubyext.c (transfer_find_i): removed use of String#=~ in favor of Regexp#match. * lib/yaml.rb: YAML::try_implicit returns. * lib/yaml/rubytypes.rb: Regexps added for type matching. * lib/yaml/emitter.rb: fix String + nil error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/gram.c: added grammar for certain empty sequence entries.why2003-06-176-755/+1019
| | | | | | | | | | | | | * ext/syck/handler.c, ext/syck/syck.c, ext/syck/syck.h: track bad anchors. * ext/syck/token.c: added pause token, tag possible circular references. * lib/yaml/rubytypes.rb: parsing YMD time as Date instance. * ext/syck/rubyext.c: ditto. DomainType, PrivateType, BadAlias classes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: preserve newlines prepended to a block.why2003-06-102-1065/+1197
| | | | | | | | | | | | | | | | * ext/syck/implicit.c (syck_match_implicit): added !merge and !default. * lib/yaml/constants.rb: remove '\z' escape. * lib/yaml/emitter.rb: ensure reset of @seq_map shortcut flag. * lib/yaml/encoding.rb: remove Unicode translation methods. * lib/yaml/rubytypes.rb: improved round-tripping of Strings. [ruby-core:1134] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@3775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial checkin of YAML substances.why2003-05-0910-0/+5899
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e