ruby-changes:22573
From: drbrain <ko1@a...>
Date: Wed, 15 Feb 2012 13:30:50 +0900 (JST)
Subject: [ruby-changes:22573] drbrain:r34622 (trunk): * ext/zlib/zlib.c (Init_zlib): Added Zlib::TEXT and note that
drbrain 2012-02-15 13:30:37 +0900 (Wed, 15 Feb 2012) New Revision: 34622 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34622 Log: * ext/zlib/zlib.c (Init_zlib): Added Zlib::TEXT and note that Zlib::ASCII is deprecated in zlib 1.2.3 and newer. Modified files: trunk/ChangeLog trunk/ext/zlib/zlib.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34621) +++ ChangeLog (revision 34622) @@ -1,3 +1,8 @@ +Wed Feb 15 12:30:10 2012 Eric Hodel <drbrain@s...> + + * ext/zlib/zlib.c (Init_zlib): Added Zlib::TEXT and note that + Zlib::ASCII is deprecated in zlib 1.2.3 and newer. + Wed Feb 15 12:24:40 2012 Eric Hodel <drbrain@s...> * ext/zlib/zlib.c: Move constant descriptions to constants. Remove Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 34621) +++ ext/zlib/zlib.c (revision 34622) @@ -4057,9 +4057,19 @@ /* Represents text data as guessed by deflate. * + * NOTE: The underlying constant Z_ASCII was deprecated in favor of Z_TEXT + * in zlib 1.2.2. New applications should not use this constant. + * * See Zlib::Deflate#data_type. */ rb_define_const(mZlib, "ASCII", INT2FIX(Z_ASCII)); +#ifdef Z_TEXT + /* Represents text data as guessed by deflate. + * + * See Zlib::Deflate#data_type. */ + rb_define_const(mZlib, "TEXT", INT2FIX(Z_TEXT)); +#endif + /* Represents an unknown data type as guessed by deflate. * * See Zlib::Deflate#data_type. */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/