aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
authorDrew Moseley <dmoseley@cygnus>1998-08-13 20:15:20 +0000
committerDrew Moseley <dmoseley@cygnus>1998-08-13 20:15:20 +0000
commit1dd251f99ddcc3d09548e71704066aeba8be8d4a (patch)
tree3e4863b11241f7ef8d1e5122d9f8764589984497 /gdb/gdbtk.c
parent6b34ac5a5c80ef5cff38d13f138c16dcfef71047 (diff)
downloadgdb-1dd251f99ddcc3d09548e71704066aeba8be8d4a.zip
gdb-1dd251f99ddcc3d09548e71704066aeba8be8d4a.tar.gz
gdb-1dd251f99ddcc3d09548e71704066aeba8be8d4a.tar.bz2
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.
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c6
1 files changed, 4 insertions, 2 deletions
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 ();
}