summaryrefslogtreecommitdiff
path: root/include/ruby/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/regex.h')
-rw-r--r--include/ruby/regex.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/include/ruby/regex.h b/include/ruby/regex.h
index b214c63d3e..53278173f8 100644
--- a/include/ruby/regex.h
+++ b/include/ruby/regex.h
@@ -1,17 +1,13 @@
-/**********************************************************************
-
- regex.h -
-
- $Author$
- $Date$
-
- Copyright (C) 1993-2007 Yukihiro Matsumoto
-
-**********************************************************************/
-
-#ifndef ONIGURUMA_REGEX_H
+#ifndef ONIGURUMA_REGEX_H /*-*-C++-*-vi:se ft=cpp:*/
#define ONIGURUMA_REGEX_H 1
-
+/**
+ * @author $Author$
+ * @copyright Copyright (C) 1993-2007 Yukihiro Matsumoto
+ * @copyright This file is a part of the programming language Ruby.
+ * Permission is hereby granted, to either redistribute and/or
+ * modify this file, provided that the conditions mentioned in the
+ * file COPYING are met. Consult the file for details.
+ */
#if defined(__cplusplus)
extern "C" {
#if 0
@@ -25,15 +21,18 @@ extern "C" {
#include "oniguruma.h"
#endif
+RUBY_SYMBOL_EXPORT_BEGIN
+
#ifndef ONIG_RUBY_M17N
ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
-#define ismbchar(p, e, enc) (mbclen((p),(e),(enc)) != 1)
#define mbclen(p,e,enc) rb_enc_mbclen((p),(e),(enc))
#endif /* ifndef ONIG_RUBY_M17N */
+RUBY_SYMBOL_EXPORT_END
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */