summaryrefslogtreecommitdiff
path: root/ext/syck
AgeCommit message (Collapse)Author
2011-09-07* ext/syck/lib/syck/types.rb: use toplevel Syck.naruse
for the case someone define Syck::Syck (or YAML::Syck). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13Fix: r32043 may raise NameError.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13* ext/syck/lib/syck/rubytypes.rb: ditto.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06* ext/syck/rubyext.c (mktime_do): extra digits are not used.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06* ext/syck/rubyext.c (mktime_do): remove unused variable offset.naruse
* ext/syck/syck.h: use #ifdef instead of #if DEBUG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06* ext/syck/rubyext.c (mktime_do): avoid buffer overrun, byshyouhei
silently ignoring lesser significant digits. Required buffer length can be computable so you might at first think of allocating enough memory space on the fly using alloca(). That is a wrong idea because when using alloca there is always risk of integer overflow. A function that accepts outer-process resources like this should not blindly trust its inputs. In this particular case we just want to generate miliseconds resolution by strtod() so the string in question needs no more length than what we originally have. Ignoring lesser significant digits should suffice I believe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06YAML.load time correctly parse usecs smaller than 1 fixes #4571shyouhei
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-25* ext/sdbm/_sdbm.c (sdbm_open): use size_t.naruse
* ext/syck/bytecode.c: ditto. * ext/sdbm/_sdbm.c (delpair): use ptrdiff_t. * ext/sdbm/init.c: use RSTRING_LENINT. * ext/dl/handle.c: suppress warning: shorten-64-to-32. * ext/strscan/strscan.c: ditto. * ext/syck/emitter.c: ditto. * ext/syck/implicit.c: ditto. * ext/syck/syck.c: ditto. * ext/syck/token.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05* ext/syck/rubyext.c (syck_node_init_copy): SyckNode is notnobu
copiable. [ruby-core:35094] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02* ext/psych/lib/psych/visitors/to_ruby.rb: use Regexp::NOENCODINGtenderlove
rather than magic number. * ext/syck/lib/syck/rubytypes.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02* ext/psych/lib/psych/visitors/to_ruby.rb: ARG_ENCODING_NONE regulartenderlove
expressions can round trip. [ruby-core:34969] * test/psych/test_yaml.rb: test for ARG_ENCODING_NONE regex * ext/sych/lib/syck/rubytypes.rb: ARG_ENCODING_NONE regular expressions can round trip. * test/syck/test_yaml.rb: test for ARG_ENCODING_NONE regex git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11* fix type warnings.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12* ext/syck/rubyext.c (struct mktime_arg): constified.nobu
* ext/syck/rubyext.c (mktime_do, mktime_r, rb_syck_mktime): fix function signatures. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-30* string.c (tr_setup_table): fix bug in r29146.naruse
Initialize table even if cflag is 0; tr_find see whether del is empty or not. * string.c (tr_find): nodel can't be NULL; if NULL, it means it is not specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07.cvsignore: have not been used already. [Bug #3468]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19* ext/syck/lib/syck.rb: fixing unused variable warningstenderlove
* ext/syck/lib/syck/basenode.rb: ditto * ext/syck/lib/syck/rubytypes.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21* ext/syck/implicit.c (YYFILL): suppress warnings.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21* suppress warnings.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17* process.c: suppress warning for signed and unsigned typemame
inconsistency. * ext/psych/parser.c: ditto. * ext/sdbm/_sdbm.c: ditto. * ext/syck/rubyext.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-02* ext/syck/emitter.c (syck_scan_scalar): set SCAN_WHITEEDGE flagnobu
when scalar begins with newline. patches from Dave B <daz AT d10.karoo.co.uk> at [ruby-core:23019] and caleb clausen at [ruby-core:25851]. [ruby-core:23006][ruby-core:29925] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-24* ext/syck/yaml2byte.c (bytestring_append, bytestring_extend):nobu
removed wrong extra assignments. a patch from Marcus Rueckert <darix AT opensu.se> at [ruby-core:29759]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-22* ext/**/*.[ch]: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16* ext/psych/lib/psych/core_ext.rb (yaml_as): supporting deprecatedtenderlove
"yaml_as" method * ext/syck/lib/syck/tag.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14* ext/syck/lib/syck/basenode.rb (Syck::BaseNode#match_path): fixednobu
library name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14* ext/syck/lib/yaml/syck.rb: split from ext/syck/lib/syck.rb fornobu
backward compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11* ext/syck/lib/syck/dbm.rb: moved to lib/yaml/dbm.rb since it is nottenderlove
YAML engine specific * ext/syck/lib/syck/store.rb: moved to lib/yaml/store.rb since it is not YAML engine specific. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05* ext/psych/lib/psych/core_ext.rb: remove before alias.naruse
* ext/syck/lib/syck.rb: don't warn called by itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05Don't warn when YAML.quick_emit is called by Object#to_yaml.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-04Remove circular dependency of syck.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-03* lib/yaml: Moved to ext/syck/lib, Syck only uses Syck constant.tenderlove
* lib/yaml.rb: Added an engine manager for choosing YAML engine. * ext/syck/lib/syck/rubytypes.rb: squashed warnings when using Psych git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16* ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings.naruse
patch from Charlie Savage. [ruby-core:22869] * ext/digest/bubblebabble/bubblebabble.c (bubblebabble_str_new): ditto. * ext/digest/digest.c (hexencode_str_new): ditto. * ext/iconv/iconv.c (iconv_convert): ditto. * ext/socket/socket.c (inspect_sockaddr): ditto. * ext/socket/raddrinfo.c (sockaddr_obj): ditto. * ext/syck/emitter.c (syck_emitter_write): ditto. * ext/syck/emitter.c (syck_emitter_flush): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-22YAML parser don't need identity hash.akr
revert the part of previous commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-22* ext/syck/rubyext.c (id_hash_new): new function to create a hashakr
which key is compared by object id. (syck_parser_load): use id_hash_new for bonus->data. (syck_parser_load_documents): ditto. (syck_emitter_reset): ditto. * lib/yaml.rb (YAML.quick_emit): give the object itself to eimitter. don't use object_id and hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21* time.c: remove time_t restriction from Time class.akr
* timev.h: new file to define struct vtm. * strftime.c: format struct vtm instead of struct tm. * ext/syck/rubyext.c (mktime_do): don't use time_t; [ruby-dev:38191] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-19* ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a valuematz
out of range of Time. [ruby-core:19919] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-09* ext/syck/syck.c (syck_lookup_sym): remove reading uninitializedmame
variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-11* ext/syck/node.c (syck_replace_str2): fix wrong check to free ptr.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-31* ext/syck/syck.c (syck_free_parser): fix memory leak bymame
YAML::Syck.compile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-31* ext/syck/syck.h (ASSERT): fix typo at r18176.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-31* ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has nonobu
effect unless debug mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-31* iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms whichnobu
int size differs from pointer size. * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): ditto * ext/syck/rubyext.c (rb_syck_err_handler), (syck_default_error_handler): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-30* ext/syck/rubyext.c (rb_syck_compile): remove meaningless branchmame
that misleads into thinking that the variable sav may be uninitialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25* ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename):nobu
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22* ext/syck: suppress warnings more.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22* ext/syck: suppress warnings more.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22* ext/syck: suppress warnings.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22* ext/syck/rubyext.c, ext/syck/yaml2byte.c, ext/syck/emitter.c,mame
ext/syck/syck.c, ext/syck/handler.c, ext/syck/syck.h: suppress GCC warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16* ext/syck/rubyext.c: add encoding header.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15* ext/syck/rubyext.c (yaml_org_handler): associate encoding.naruse
* ext/syck/rubyext.c (syck_genericresolver_node_import): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-17* enc/trans/utf_16_32.c (fun_so_to_utf_16be, fun_so_to_utf_16le): addmame
parentheses to remove warnings of gcc. * io.c (rb_io_getc): remove unused variables. * compile.c (NODE_NEXT, NODE_REDO): remove unused labels. * ext/nkf/nkf.c (rb_nkf_convert): remove unused variables. * ext/syck/rubyext.c (syck_resolver_initialize, syck_resolver_detect_implicit, syck_emitter_emit): remove unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e