* ext/zlib/zlib.c (Init_zlib): Added Zlib::TEXT and note that
Zlib::ASCII is deprecated in zlib 1.2.3 and newer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
72282ab1e2
commit
b6c604d757
@ -1,3 +1,8 @@
|
|||||||
|
Wed Feb 15 12:30:10 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* 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@segment7.net>
|
Wed Feb 15 12:24:40 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* ext/zlib/zlib.c: Move constant descriptions to constants. Remove
|
* ext/zlib/zlib.c: Move constant descriptions to constants. Remove
|
||||||
|
@ -4056,10 +4056,20 @@ Init_zlib()
|
|||||||
rb_define_const(mZlib, "BINARY", INT2FIX(Z_BINARY));
|
rb_define_const(mZlib, "BINARY", INT2FIX(Z_BINARY));
|
||||||
|
|
||||||
/* Represents text data as guessed by deflate.
|
/* 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. */
|
* See Zlib::Deflate#data_type. */
|
||||||
rb_define_const(mZlib, "ASCII", INT2FIX(Z_ASCII));
|
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.
|
/* Represents an unknown data type as guessed by deflate.
|
||||||
*
|
*
|
||||||
* See Zlib::Deflate#data_type. */
|
* See Zlib::Deflate#data_type. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user