зеркало из https://github.com/github/ruby.git
* encoding.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2b79366f52
Коммит
c4442536b2
|
@ -1,3 +1,7 @@
|
|||
Sun Dec 12 11:53:24 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* encoding.c: parenthesize macro arguments.
|
||||
|
||||
Sun Dec 12 04:01:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_inspect): fix: extra back slash is added when
|
||||
|
|
6
error.c
6
error.c
|
@ -30,7 +30,7 @@ extern const char ruby_description[];
|
|||
static const char *
|
||||
rb_strerrno(int err)
|
||||
{
|
||||
#define defined_error(name, num) if (err == num) return name;
|
||||
#define defined_error(name, num) if (err == (num)) return (name);
|
||||
#define undefined_error(name)
|
||||
#include "known_errors.inc"
|
||||
#undef defined_error
|
||||
|
@ -1619,8 +1619,8 @@ void
|
|||
Init_syserr(void)
|
||||
{
|
||||
rb_eNOERROR = set_syserr(0, "NOERROR");
|
||||
#define defined_error(name, num) set_syserr(num, name);
|
||||
#define undefined_error(name) set_syserr(0, name);
|
||||
#define defined_error(name, num) set_syserr((num), (name));
|
||||
#define undefined_error(name) set_syserr(0, (name));
|
||||
#include "known_errors.inc"
|
||||
#undef defined_error
|
||||
#undef undefined_error
|
||||
|
|
Загрузка…
Ссылка в новой задаче