summaryrefslogtreecommitdiff
path: root/jni/ruby/dmyenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'jni/ruby/dmyenc.c')
-rw-r--r--jni/ruby/dmyenc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/jni/ruby/dmyenc.c b/jni/ruby/dmyenc.c
new file mode 100644
index 0000000..7e006e8
--- /dev/null
+++ b/jni/ruby/dmyenc.c
@@ -0,0 +1,10 @@
+#define require(name) ruby_require_internal(name, (unsigned int)sizeof(name)-1)
+int ruby_require_internal(const char *, int);
+
+void
+Init_enc(void)
+{
+ if (require("enc/encdb.so") == 1) {
+ require("enc/trans/transdb.so");
+ }
+}