mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* regex.c (re_match_exec): $ _always_ matches at the end of string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9d40c0d79
commit
4bdf9a6c61
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu May 1 08:24:00 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* regex.c (re_match_exec): $ _always_ matches at the end of string.
|
||||
|
||||
Wed Apr 30 14:12:00 2003 wanowa.kimura@nifty.ne.jp (kimura wataru)
|
||||
|
||||
* net/imap.rb: support THREAD extension.
|
||||
|
|
6
file.c
6
file.c
|
@ -2045,6 +2045,7 @@ rb_file_flock(obj, operation)
|
|||
if (fptr->mode & FMODE_WRITABLE) {
|
||||
fflush(GetWriteFile(fptr));
|
||||
}
|
||||
retry:
|
||||
TRAP_BEG;
|
||||
ret = flock(fileno(fptr->f), NUM2INT(operation));
|
||||
TRAP_END;
|
||||
|
@ -2056,6 +2057,11 @@ rb_file_flock(obj, operation)
|
|||
case EWOULDBLOCK:
|
||||
#endif
|
||||
return Qfalse;
|
||||
case EINTR:
|
||||
#if defined(ERESTART)
|
||||
case ERESTART:
|
||||
#endif
|
||||
goto retry;
|
||||
}
|
||||
rb_sys_fail(fptr->path);
|
||||
}
|
||||
|
|
3
regex.c
3
regex.c
|
@ -3883,8 +3883,7 @@ re_match_exec(bufp, string_arg, size, pos, beg, regs)
|
|||
|
||||
case endline:
|
||||
if (AT_STRINGS_END(d)) {
|
||||
if (size == 0 || d[-1] != '\n')
|
||||
break;
|
||||
break;
|
||||
}
|
||||
else if (*d == '\n')
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue