[ruby-cvs:61397] nobu:r54236 (trunk): strftime.c: format in String

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Mar 23 20:57:01 JST 2016


nobu	2016-03-23 20:57:01 +0900 (Wed, 23 Mar 2016)

  New Revision: 54236

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54236

  Log:
    strftime.c: format in String
    
    * strftime.c (rb_strftime_with_timespec): append formatted results
      to the given string with expanding, and also deal with NUL chars.
    * strftime.c (rb_strftime, rb_strftime_timespec): return formatted
      string, not the length put in the given buffer.
    * time.c (rb_strftime_alloc): no longer needs to retry with
      reallocating buffers.
    * time.c (time_strftime): no longer needs to split by NUL chars.

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/internal.h
    trunk/strftime.c
    trunk/test/ruby/test_time.rb
    trunk/time.c


More information about the ruby-cvs mailing list