summaryrefslogtreecommitdiffhomepage
path: root/src/dump.c
diff options
context:
space:
mode:
authormattn <[email protected]>2013-02-15 04:38:27 +0900
committermattn <[email protected]>2013-02-15 04:38:27 +0900
commitb1a5146ea8f8665df5edf2b26dcadc028d7929f7 (patch)
tree0712ef0ebbc5254528c7eaad88b8535f58607db0 /src/dump.c
parent8578cd622ba6644a0421bcb35e44e0f7b2927a54 (diff)
downloadmruby-b1a5146ea8f8665df5edf2b26dcadc028d7929f7.tar.gz
mruby-b1a5146ea8f8665df5edf2b26dcadc028d7929f7.zip
Pluggable Regexp
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/dump.c b/src/dump.c
index e0d755c8c..e8d96c570 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -9,9 +9,6 @@
#include <ctype.h>
#include "mruby/string.h"
-#ifdef ENABLE_REGEXP
-#include "re.h"
-#endif
#include "mruby/irep.h"
static const unsigned char def_rite_binary_header[] =
@@ -256,13 +253,6 @@ get_pool_block_size(mrb_state *mrb, mrb_irep *irep, int type)
nlen = str_dump_len(RSTRING_PTR(str), RSTRING_LEN(str), type);
size += nlen;
break;
-#ifdef ENABLE_REGEXP
- case MRB_TT_REGEX:
- str = mrb_reg_to_s(mrb, irep->pool[pool_no]);
- nlen = str_dump_len(RSTRING_PTR(str), RSTRING_LEN(str), type);
- size += nlen;
- break;
-#endif
default:
break;
}
@@ -390,23 +380,6 @@ write_pool_block(mrb_state *mrb, mrb_irep *irep, char *buf, int type)
str_dump(RSTRING_PTR(str), char_buf, RSTRING_LEN(str), type);
break;
-#ifdef ENABLE_REGEXP
- case MRB_TT_REGEX:
- str = mrb_reg_to_s(mrb, irep->pool[pool_no]);
- len = str_dump_len(RSTRING_PTR(str), RSTRING_LEN(str), type);
- if ( len > buf_size - 1) {
- buf_size = len + 1;
- char_buf = mrb_realloc(mrb, char_buf, buf_size);
- if (char_buf == NULL) {
- result = MRB_DUMP_GENERAL_FAILURE;
- goto error_exit;
- }
- memset(char_buf, 0, buf_size);
- }
- str_dump(RSTRING_PTR(str), char_buf, RSTRING_LEN(str), type);
- break;
-#endif
-
default:
buf += uint16_dump(0, buf, type); /* data length = 0 */
continue;