Ruby 3.5.0dev (2025-01-10 revision 5fab31b15e32622c4b71d1d347a41937e9f9c212)
regex.h
1#ifndef ONIGURUMA_REGEX_H /*-*-C++-*-vi:se ft=cpp:*/
2#define ONIGURUMA_REGEX_H 1
11#if defined(__cplusplus)
12extern "C" {
13#if 0
14} /* satisfy cc-mode */
15#endif
16#endif
17
18#ifdef RUBY
19#include "ruby/oniguruma.h"
20#else
21#include "oniguruma.h"
22#endif
23
24RUBY_SYMBOL_EXPORT_BEGIN
25
26#ifndef ONIG_RUBY_M17N
27
28ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
29
30#define mbclen(p,e,enc) rb_enc_mbclen((p),(e),(enc))
31
32#endif /* ifndef ONIG_RUBY_M17N */
33
34RUBY_SYMBOL_EXPORT_END
35
36#if defined(__cplusplus)
37#if 0
38{ /* satisfy cc-mode */
39#endif
40} /* extern "C" { */
41#endif
42
43#endif /* ONIGURUMA_REGEX_H */