ruby-changes:11486
From: nobu <ko1@a...>
Date: Wed, 1 Apr 2009 18:54:03 +0900 (JST)
Subject: [ruby-changes:11486] Ruby:r23112 (trunk): * vm_dump.c (rb_vm_bugreport): should not #include inside a
nobu 2009-04-01 18:53:52 +0900 (Wed, 01 Apr 2009) New Revision: 23112 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23112 Log: * vm_dump.c (rb_vm_bugreport): should not #include inside a function, since headers may have declarations. c.f. [ruby-core:23095] Modified files: trunk/ChangeLog trunk/vm_dump.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23111) +++ ChangeLog (revision 23112) @@ -1,3 +1,9 @@ +Wed Apr 1 18:53:51 2009 Nobuyoshi Nakada <nobu@r...> + + * 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@r...> * mkconfig.rb: ignores version numbers in config.status. replaces Index: vm_dump.c =================================================================== --- vm_dump.c (revision 23111) +++ vm_dump.c (revision 23112) @@ -576,6 +576,9 @@ return 0; } +#if HAVE_BACKTRACE +#include <execinfo.h> +#endif void rb_vm_bugreport(void) { @@ -589,7 +592,6 @@ } #if HAVE_BACKTRACE -#include <execinfo.h> #define MAX_NATIVE_TRACE 1024 { static void *trace[MAX_NATIVE_TRACE]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/