Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
26c0f8a7
Commit
26c0f8a7
authored
Apr 17, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2067 from take-cheeze/move_re_h
Move src/re.h to include/mruby/re.h .
parents
93c82514
b5824f36
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
include/mruby/re.h
include/mruby/re.h
+20
-0
mrbgems/mruby-string-utf8/src/string.c
mrbgems/mruby-string-utf8/src/string.c
+1
-3
src/codegen.c
src/codegen.c
+1
-1
src/string.c
src/string.c
+1
-1
No files found.
src
/re.h
→
include/mruby
/re.h
View file @
26c0f8a7
/*
** re.h - Regexp class
**
mruby/
re.h - Regexp class
**
** See Copyright Notice in mruby.h
*/
#ifndef RE_H
#define RE_H
#ifndef MRUBY_RE_H
#define MRUBY_RE_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define REGEXP_CLASS "Regexp"
#ifdef __cplusplus
}
#endif
#endif
/* RE_H */
mrbgems/mruby-string-utf8/src/string.c
View file @
26c0f8a7
#include "mruby.h"
#include "mruby/string.h"
#include "mruby/range.h"
#include "mruby/re.h"
#include <ctype.h>
#include <string.h>
/* TODO: duplicate definition in src/re.h */
#define REGEXP_CLASS "Regexp"
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
,
...
...
src/codegen.c
View file @
26c0f8a7
...
...
@@ -16,7 +16,7 @@
#include "mruby/debug.h"
#include "node.h"
#include "opcode.h"
#include "re.h"
#include "
mruby/
re.h"
#include "mrb_throw.h"
typedef
mrb_ast_node
node
;
...
...
src/string.c
View file @
26c0f8a7
...
...
@@ -14,7 +14,7 @@
#include "mruby/class.h"
#include "mruby/range.h"
#include "mruby/string.h"
#include "re.h"
#include "
mruby/
re.h"
#define STR_EMBED_P(s) ((s)->flags & MRB_STR_EMBED)
#define STR_SET_EMBED_FLAG(s) ((s)->flags |= MRB_STR_EMBED)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment