2020-04-10 01:11:40 -04:00
|
|
|
#ifndef ONIGURUMA_REGEX_H /*-*-C++-*-vi:se ft=cpp:*/
|
2007-06-09 23:06:15 -04:00
|
|
|
#define ONIGURUMA_REGEX_H 1
|
2020-04-10 01:11:40 -04:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @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.
|
|
|
|
*/
|
2007-06-09 23:06:15 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#if 0
|
|
|
|
} /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RUBY
|
|
|
|
#include "ruby/oniguruma.h"
|
|
|
|
#else
|
2005-02-26 03:05:06 -05:00
|
|
|
#include "oniguruma.h"
|
2007-06-09 23:06:15 -04:00
|
|
|
#endif
|
2005-02-26 03:05:06 -05:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_BEGIN
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2005-02-26 03:05:06 -05:00
|
|
|
#ifndef ONIG_RUBY_M17N
|
|
|
|
|
|
|
|
ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
|
|
|
|
|
2007-09-06 08:33:45 -04:00
|
|
|
#define mbclen(p,e,enc) rb_enc_mbclen((p),(e),(enc))
|
2005-02-26 03:05:06 -05:00
|
|
|
|
|
|
|
#endif /* ifndef ONIG_RUBY_M17N */
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_END
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if 0
|
|
|
|
{ /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ONIGURUMA_REGEX_H */
|