summaryrefslogtreecommitdiff
path: root/ext/mbstring/oniguruma/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mbstring/oniguruma/regex.c')
-rw-r--r--ext/mbstring/oniguruma/regex.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/ext/mbstring/oniguruma/regex.c b/ext/mbstring/oniguruma/regex.c
index 0c4a43be9e..764b3963d9 100644
--- a/ext/mbstring/oniguruma/regex.c
+++ b/ext/mbstring/oniguruma/regex.c
@@ -2,15 +2,27 @@
regex.c - Oniguruma (regular expression library)
- Copyright (C) 2002-2003 K.Kosako (kosako@sofnec.co.jp)
+ Copyright (C) 2002-2004 K.Kosako (kosako@sofnec.co.jp)
**********************************************************************/
/*
* Source wrapper for Ruby.
*/
+#define ONIG_SOURCE_IS_WRAPPED
+
+#include "regint.h"
+#include "regex.h"
#include "regparse.c"
#include "regcomp.c"
#include "regexec.c"
+#include "regenc.c"
#include "reggnu.c"
#include "regerror.c"
+
+#ifndef ONIG_RUBY_M17N
+#include "enc/ascii.c"
+#include "enc/utf8.c"
+#include "enc/euc_jp.c"
+#include "enc/sjis.c"
+#endif