From 1dd251f99ddcc3d09548e71704066aeba8be8d4a Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Thu, 13 Aug 1998 20:15:20 +0000 Subject: [PATCH] Added a scope-level around the contents of an #ifdef in gdbtk_cleanup() so that the variable declarations in there would not be illegal in a C compilation. --- gdb/ChangeLog-gdbtk | 6 ++++++ gdb/gdbtk.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 42b7b0d..2b7e46a 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,9 @@ +Thu Aug 13 15:09:59 1998 Drew Moseley + + * gdbtk.c (gdbtk_cleanup): added a scope-level around the contents + of the #ifdef so that the variable declarations in there would not + be illegal in a C compilation. + Mon Jul 27 13:07:16 1998 Martin M. Hunt * gdbtk.c (gdbtk_call_command): Removed because it is now diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 01cf3dd..e8d31ad 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -298,8 +298,10 @@ gdbtk_cleanup (dummy) { Tcl_Eval (gdbtk_interp, "gdbtk_cleanup"); #ifdef IDE - struct ide_event_handle *h = (struct ide_event_handle *) dummy; - ide_interface_deregister_all (h); + { + struct ide_event_handle *h = (struct ide_event_handle *) dummy; + ide_interface_deregister_all (h); + } #endif Tcl_Finalize (); } -- 2.7.4