#include #include "walters_xni.h" #include "/Users/wayne/.rvm/gems/ruby-2.0.0-p0/gems/xni-0.1.0/runtime/xni_runtime.h" extern "C" void xni_walters_buffer_finalize(void* ext_data, struct Walters_Buffer * a0); extern "C" void xni_walters_buffer_finalize(void* ext_data, struct Walters_Buffer * a0) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { walters_buffer_finalize(&rb, a0); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void xni_walters_buffer_initialize(void* ext_data, struct Walters_Buffer * a0, unsigned int a1); extern "C" void xni_walters_buffer_initialize(void* ext_data, struct Walters_Buffer * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { walters_buffer_initialize(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" const char * xni_walters_buffer_cstring(void* ext_data, struct Walters_Buffer * a0); extern "C" const char * xni_walters_buffer_cstring(void* ext_data, struct Walters_Buffer * a0) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_cstring(&rb, a0); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_html(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_escape_html(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_html(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_html0(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2, bool a3); extern "C" bool xni_walters_buffer_escape_html0(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2, bool a3) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_html0(&rb, a0, a1, a2, a3); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_unescape_html(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_unescape_html(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_unescape_html(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_xml(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_escape_xml(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_xml(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_uri(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_escape_uri(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_uri(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_url(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_escape_url(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_url(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_href(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_escape_href(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_href(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_unescape_uri(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_unescape_uri(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_unescape_uri(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_unescape_url(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_unescape_url(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_unescape_url(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_escape_js(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_escape_js(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_escape_js(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" bool xni_walters_buffer_unescape_js(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2); extern "C" bool xni_walters_buffer_unescape_js(void* ext_data, struct Walters_Buffer * a0, const char * a1, unsigned int a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_buffer_unescape_js(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void xni_walters_free_cstring(void* ext_data, void * a0); extern "C" void xni_walters_free_cstring(void* ext_data, void * a0) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { walters_free_cstring(&rb, a0); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" const char * xni_walters_read_cstring(void* ext_data, void * a0); extern "C" const char * xni_walters_read_cstring(void* ext_data, void * a0) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters_read_cstring(&rb, a0); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__escape_html(void* ext_data, const char * a0, unsigned int a1, bool a2); extern "C" void * xni_walters__escape_html(void* ext_data, const char * a0, unsigned int a1, bool a2) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__escape_html(&rb, a0, a1, a2); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__unescape_html(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__unescape_html(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__unescape_html(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__escape_xml(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__escape_xml(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__escape_xml(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__escape_uri(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__escape_uri(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__escape_uri(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__escape_url(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__escape_url(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__escape_url(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__escape_href(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__escape_href(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__escape_href(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__unescape_uri(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__unescape_uri(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__unescape_uri(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__unescape_url(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__unescape_url(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__unescape_url(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__escape_js(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__escape_js(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__escape_js(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" void * xni_walters__unescape_js(void* ext_data, const char * a0, unsigned int a1); extern "C" void * xni_walters__unescape_js(void* ext_data, const char * a0, unsigned int a1) { RubyEnv_ rb(&xni::ruby_functions, (ExtensionData *) ext_data); try { return walters__unescape_js(&rb, a0, a1); } catch (xni::exception& xni_exc) { xni::handle_exception((ExtensionData *) ext_data, xni_exc); } catch (std::exception& std_exc) { xni::handle_exception((ExtensionData *) ext_data, std_exc); } } extern "C" int xni_walters_sizeof_buffer(void); extern "C" int xni_walters_sizeof_buffer(void) { return walters_sizeof_buffer(); }