summaryrefslogtreecommitdiffhomepage
path: root/src/regex.h
diff options
context:
space:
mode:
authormimaki <[email protected]>2012-04-20 09:39:03 +0900
committermimaki <[email protected]>2012-04-20 09:39:03 +0900
commite0d6430f63c4cbe0c71ce82ee23284671389a818 (patch)
tree41abad7f12eced98d9ac14d141cea62464c3332f /src/regex.h
parent54ad561098ed353ada70205c39b2c42a2a2eb9e5 (diff)
downloadmruby-e0d6430f63c4cbe0c71ce82ee23284671389a818.tar.gz
mruby-e0d6430f63c4cbe0c71ce82ee23284671389a818.zip
add mruby sources
Diffstat (limited to 'src/regex.h')
-rw-r--r--src/regex.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/regex.h b/src/regex.h
new file mode 100644
index 000000000..b5472122a
--- /dev/null
+++ b/src/regex.h
@@ -0,0 +1,32 @@
+/**********************************************************************
+
+ regex.h -
+
+ $Author: akr $
+
+ Copyright (C) 1993-2007 Yukihiro Matsumoto
+
+**********************************************************************/
+
+#ifndef ONIGURUMA_REGEX_H
+#define ONIGURUMA_REGEX_H 1
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include "oniguruma.h"
+
+#ifndef ONIG_RUBY_M17N
+
+ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
+
+#define mbclen(p,e,enc) mrb_enc_mbclen((p),(e),(enc))
+
+#endif /* ifndef ONIG_RUBY_M17N */
+
+#if defined(__cplusplus)
+} /* extern "C" { */
+#endif
+
+#endif /* ONIGURUMA_REGEX_H */