mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Cleanup Regexp codes
This commit is contained in:
@@ -22,7 +22,6 @@ void mrb_init_numeric(mrb_state*);
|
||||
void mrb_init_range(mrb_state*);
|
||||
void mrb_init_struct(mrb_state*);
|
||||
void mrb_init_gc(mrb_state*);
|
||||
void mrb_init_regexp(mrb_state*);
|
||||
void mrb_init_print(mrb_state*);
|
||||
void mrb_init_math(mrb_state*);
|
||||
void mrb_init_mrblib(mrb_state*);
|
||||
@@ -53,7 +52,6 @@ mrb_init_core(mrb_state *mrb)
|
||||
mrb_init_struct(mrb); DONE;
|
||||
#endif
|
||||
mrb_init_gc(mrb); DONE;
|
||||
mrb_init_regexp(mrb); DONE;
|
||||
#ifdef ENABLE_STDIO
|
||||
mrb_init_print(mrb); DONE;
|
||||
#endif
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
/*
|
||||
** re.c - Regexp class
|
||||
**
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include "mruby.h"
|
||||
#include <string.h>
|
||||
#include "mruby/string.h"
|
||||
#include "re.h"
|
||||
#include "mruby/array.h"
|
||||
#include "mruby/class.h"
|
||||
#include "error.h"
|
||||
|
||||
/*
|
||||
* Document-class: RegexpError
|
||||
*
|
||||
* Raised when given an invalid regexp expression.
|
||||
*
|
||||
* Regexp.new("?")
|
||||
*
|
||||
* <em>raises the exception:</em>
|
||||
*
|
||||
* RegexpError: target of repeat operator is not specified: /?/
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-class: Regexp
|
||||
*
|
||||
* A <code>Regexp</code> holds a regular expression, used to match a pattern
|
||||
* against strings. Regexps are created using the <code>/.../</code> and
|
||||
* <code>%r{...}</code> literals, and by the <code>Regexp::new</code>
|
||||
* constructor.
|
||||
*
|
||||
* :include: doc/re.rdoc
|
||||
*/
|
||||
|
||||
void
|
||||
mrb_init_regexp(mrb_state *mrb)
|
||||
{
|
||||
//mrb_define_class(mrb, REGEXP_CLASS, mrb->object_class);
|
||||
}
|
||||
Reference in New Issue
Block a user