зеркало из https://github.com/github/ruby.git
* vm_dump.c (rb_vm_bugreport): should not #include inside a
function, since headers may have declarations. c.f. [ruby-core:23095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
af9459a469
Коммит
6941189b94
|
@ -1,3 +1,9 @@
|
|||
Wed Apr 1 18:53:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_dump.c (rb_vm_bugreport): should not #include inside a
|
||||
function, since headers may have declarations.
|
||||
c.f. [ruby-core:23095]
|
||||
|
||||
Wed Apr 1 18:44:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* mkconfig.rb: ignores version numbers in config.status. replaces
|
||||
|
|
|
@ -576,6 +576,9 @@ bugreport_backtrace(void *arg, const char *file, int line, const char *method)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if HAVE_BACKTRACE
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
void
|
||||
rb_vm_bugreport(void)
|
||||
{
|
||||
|
@ -589,7 +592,6 @@ rb_vm_bugreport(void)
|
|||
}
|
||||
|
||||
#if HAVE_BACKTRACE
|
||||
#include <execinfo.h>
|
||||
#define MAX_NATIVE_TRACE 1024
|
||||
{
|
||||
static void *trace[MAX_NATIVE_TRACE];
|
||||
|
|
Загрузка…
Ссылка в новой задаче