Commit 26c0f8a7 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2067 from take-cheeze/move_re_h

Move src/re.h to include/mruby/re.h . 
parents 93c82514 b5824f36
/* /*
** re.h - Regexp class ** mruby/re.h - Regexp class
** **
** See Copyright Notice in mruby.h ** See Copyright Notice in mruby.h
*/ */
#ifndef RE_H #ifndef MRUBY_RE_H
#define RE_H #define MRUBY_RE_H
#ifdef __cplusplus
extern "C" {
#endif
#define REGEXP_CLASS "Regexp" #define REGEXP_CLASS "Regexp"
#ifdef __cplusplus
}
#endif
#endif /* RE_H */ #endif /* RE_H */
#include "mruby.h" #include "mruby.h"
#include "mruby/string.h" #include "mruby/string.h"
#include "mruby/range.h" #include "mruby/range.h"
#include "mruby/re.h"
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
/* TODO: duplicate definition in src/re.h */
#define REGEXP_CLASS "Regexp"
static const char utf8len_codepage[256] = static const char utf8len_codepage[256] =
{ {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "mruby/debug.h" #include "mruby/debug.h"
#include "node.h" #include "node.h"
#include "opcode.h" #include "opcode.h"
#include "re.h" #include "mruby/re.h"
#include "mrb_throw.h" #include "mrb_throw.h"
typedef mrb_ast_node node; typedef mrb_ast_node node;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "mruby/class.h" #include "mruby/class.h"
#include "mruby/range.h" #include "mruby/range.h"
#include "mruby/string.h" #include "mruby/string.h"
#include "re.h" #include "mruby/re.h"
#define STR_EMBED_P(s) ((s)->flags & MRB_STR_EMBED) #define STR_EMBED_P(s) ((s)->flags & MRB_STR_EMBED)
#define STR_SET_EMBED_FLAG(s) ((s)->flags |= MRB_STR_EMBED) #define STR_SET_EMBED_FLAG(s) ((s)->flags |= MRB_STR_EMBED)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment