* error.c (report_bug): uses ruby_description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1af43d329f
commit
81a68908cd
@ -1,3 +1,7 @@
|
|||||||
|
Tue Dec 25 11:33:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* error.c (report_bug): uses ruby_description.
|
||||||
|
|
||||||
Tue Dec 25 11:20:38 2007 Koichi Sasada <ko1@atdot.net>
|
Tue Dec 25 11:20:38 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* compile.c (iseq_compile_each): fix stack consistency error.
|
* compile.c (iseq_compile_each): fix stack consistency error.
|
||||||
|
7
error.c
7
error.c
@ -23,7 +23,7 @@
|
|||||||
#define EXIT_SUCCESS 0
|
#define EXIT_SUCCESS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const char ruby_version[], ruby_release_date[], ruby_platform[];
|
extern const char ruby_desription[];
|
||||||
|
|
||||||
static int
|
static int
|
||||||
err_position_0(char *buf, long len, const char *file, int line)
|
err_position_0(char *buf, long len, const char *file, int line)
|
||||||
@ -208,11 +208,10 @@ report_bug(const char *file, int line, const char *fmt, va_list args)
|
|||||||
|
|
||||||
if (fwrite(buf, 1, len, out) == len ||
|
if (fwrite(buf, 1, len, out) == len ||
|
||||||
fwrite(buf, 1, len, (out = stdout)) == len) {
|
fwrite(buf, 1, len, (out = stdout)) == len) {
|
||||||
rb_vm_bugreport();
|
|
||||||
fputs("[BUG] ", out);
|
fputs("[BUG] ", out);
|
||||||
vfprintf(out, fmt, args);
|
vfprintf(out, fmt, args);
|
||||||
fprintf(out, "\nruby %s (%s) [%s]\n\n",
|
fprintf(out, "\n%s\n\n", ruby_description);
|
||||||
ruby_version, ruby_release_date, ruby_platform);
|
rb_vm_bugreport();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user