mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* pack.c (pack_pack): avoid infinite loop at comment.
* pack.c (pack_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7de72c4858
commit
7ef48b40ba
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Mon Feb 18 20:48:40 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
|
* pack.c (pack_pack): avoid infinite loop at comment.
|
||||||
|
|
||||||
|
* pack.c (pack_unpack): ditto.
|
||||||
|
|
||||||
Mon Feb 18 14:06:28 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
Mon Feb 18 14:06:28 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* misc/ruby-mode.el (ruby-block-hanging-re): rescue block was too
|
* misc/ruby-mode.el (ruby-block-hanging-re): rescue block was too
|
||||||
|
@ -63,7 +69,6 @@ Thu Feb 16 02:11:08 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
* misc/ruby-mode.el (ruby-font-lock-keywords): fontify
|
* misc/ruby-mode.el (ruby-font-lock-keywords): fontify
|
||||||
instance/class/global variables start with '_'.
|
instance/class/global variables start with '_'.
|
||||||
|
|
||||||
>>>>>>> 1.742
|
|
||||||
Fri Feb 15 14:40:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Feb 15 14:40:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_eval): replace rb_cvar_declare() by rb_cvar_set().
|
* eval.c (rb_eval): replace rb_cvar_declare() by rb_cvar_set().
|
||||||
|
|
6
pack.c
6
pack.c
|
@ -364,8 +364,7 @@ pack_pack(ary, fmt)
|
||||||
|
|
||||||
if (ISSPACE(type)) continue;
|
if (ISSPACE(type)) continue;
|
||||||
if (type == '#') {
|
if (type == '#') {
|
||||||
while (p < pend) {
|
while ((p < pend) && (*p != '\n')) {
|
||||||
if (*p == '\n') continue;
|
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1084,8 +1083,7 @@ pack_unpack(str, fmt)
|
||||||
|
|
||||||
if (ISSPACE(type)) continue;
|
if (ISSPACE(type)) continue;
|
||||||
if (type == '#') {
|
if (type == '#') {
|
||||||
while (p < pend) {
|
while ((p < pend) && (*p != '\n')) {
|
||||||
if (*p == '\n') continue;
|
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue