ext/ox/ox.h in ox-2.13.2 vs ext/ox/ox.h in ox-2.13.3

- old
+ new

@@ -14,25 +14,20 @@ #endif #define RSTRING_NOT_MODIFIED #include "ruby.h" -#if HAS_ENCODING_SUPPORT +#if HAVE_RB_ENC_ASSOCIATE #include "ruby/encoding.h" #endif -#ifdef RUBINIUS_RUBY -#undef T_COMPLEX -enum st_retval {ST_CONTINUE = 0, ST_STOP = 1, ST_DELETE = 2, ST_CHECK}; +#if HAVE_RUBY_ST_H +#include "ruby/st.h" #else -#if HAS_TOP_LEVEL_ST_H -/* Only on travis, local is where it is for all others. Seems to vary depending on the travis machine picked up. */ +// Only on travis, local is where it is for all others. Seems to vary depending on the travis machine picked up. #include "st.h" -#else -#include "ruby/st.h" #endif -#endif #include "cache.h" #include "err.h" #include "type.h" @@ -144,14 +139,12 @@ char inv_repl[12]; // max 10 valid characters, first character is the length char strip_ns[64]; // namespace to strip, \0 is no-strip, \* is all, else only matches struct _hints *html_hints; // html hints VALUE attr_key_mod; VALUE element_key_mod; -#if HAS_ENCODING_SUPPORT +#if HAVE_RB_ENC_ASSOCIATE rb_encoding *rb_enc; -#elif HAS_PRIVATE_ENCODING - VALUE rb_enc; #else void *rb_enc; #endif } *Options; @@ -234,13 +227,11 @@ extern ID ox_tv_sec_id; extern ID ox_tv_nsec_id; extern ID ox_tv_usec_id; extern ID ox_value_id; -#if HAS_ENCODING_SUPPORT +#if HAVE_RB_ENC_ASSOCIATE extern rb_encoding *ox_utf8_encoding; -#elif HAS_PRIVATE_ENCODING -extern VALUE ox_utf8_encoding; #else extern void *ox_utf8_encoding; #endif extern VALUE ox_empty_string;