diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-26 08:44:57 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-26 08:44:57 +0000 |
| commit | 1578fc640ddf7577d34706449cbaa4161943ae8b (patch) | |
| tree | 2c31f12bc46f04362051c1415ee1f565e3ce17eb /ext | |
| parent | e08bd9d9b82d7aafbc8b3df6454172b6110decf3 (diff) | |
| download | ruby-1578fc640ddf7577d34706449cbaa4161943ae8b.tar.gz ruby-1578fc640ddf7577d34706449cbaa4161943ae8b.tar.xz ruby-1578fc640ddf7577d34706449cbaa4161943ae8b.zip | |
* ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/strscan/strscan.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 1dd61e596..dcb70a774 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -391,9 +391,6 @@ strscan_set_pos(VALUE self, VALUE v) return INT2NUM(i); } -/* I should implement this function? */ -#define strscan_prepare_re(re) /* none */ - static VALUE strscan_do_scan(VALUE self, VALUE regex, int succptr, int getstr, int headonly) { @@ -404,10 +401,6 @@ strscan_do_scan(VALUE self, VALUE regex, int succptr, int getstr, int headonly) GET_SCANNER(self, p); CLEAR_MATCH_STATUS(p); - if (EOS_P(p)) { - return Qnil; - } - strscan_prepare_re(regex); if (headonly) { ret = onig_match(RREGEXP(regex)->ptr, (UChar* )CURPTR(p), (UChar* )(CURPTR(p) + S_RESTLEN(p)), |
