This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Clean up tui-command.h


FYI,

Andrew
2004-01-20  Andrew Cagney  <cagney@redhat.com>

	* tui/tui-command.c: Update references.
	* tui/tui-io.c: Update references.
	* tui/tui-command.h: Update copyright.
	(tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.

Index: tui/tui-command.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-command.c,v
retrieving revision 1.2
diff -u -r1.2 tui-command.c
--- tui/tui-command.c	19 Jan 2004 05:06:34 -0000	1.2
+++ tui/tui-command.c	21 Jan 2004 04:13:24 -0000
@@ -48,12 +48,9 @@
 ** PUBLIC FUNCTIONS                        **
 ******************************************/
 
-/*
-   ** tuiDispatchCtrlChar().
-   **        Dispatch the correct tui function based upon the control character.
- */
+/* Dispatch the correct tui function based upon the control character.   */
 unsigned int
-tuiDispatchCtrlChar (unsigned int ch)
+tui_dispatch_ctrl_char (unsigned int ch)
 {
   TuiWinInfoPtr winInfo = tuiWinWithFocus ();
   WINDOW *w = cmdWin->generic.handle;
Index: tui/tui-command.h
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-command.h,v
retrieving revision 1.1
diff -u -r1.1 tui-command.h
--- tui/tui-command.h	19 Jan 2004 04:31:50 -0000	1.1
+++ tui/tui-command.h	21 Jan 2004 04:13:24 -0000
@@ -1,5 +1,8 @@
 /* Specific command window processing.
-   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+   Copyright 1998, 1999, 2000, 2001, 2004 Free Software Foundation,
+   Inc.
+
    Contributed by Hewlett-Packard Company.
 
    This file is part of GDB.
@@ -19,24 +22,9 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _TUI_COMMAND_H
-#define _TUI_COMMAND_H
-/*
-   ** This header file supports
- */
-
-
-/*****************************************
-** TYPE DEFINITIONS                        **
-******************************************/
-
-
-
-/*****************************************
-** PUBLIC FUNCTION EXTERNAL DECLS        **
-******************************************/
+#ifndef TUI_COMMAND_H
+#define TUI_COMMAND_H
 
-extern unsigned int tuiDispatchCtrlChar (unsigned int);
+extern unsigned int tui_dispatch_ctrl_char (unsigned int);
 
 #endif
-/*_TUI_COMMAND_H*/
Index: tui/tui-io.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-io.c,v
retrieving revision 1.2
diff -u -r1.2 tui-io.c
--- tui/tui-io.c	19 Jan 2004 05:06:34 -0000	1.2
+++ tui/tui-io.c	21 Jan 2004 04:13:26 -0000
@@ -689,7 +689,7 @@
   
   if (key_is_command_char (ch))
     {				/* Handle prev/next/up/down here */
-      ch = tuiDispatchCtrlChar (ch);
+      ch = tui_dispatch_ctrl_char (ch);
     }
   
   if (ch == '\n' || ch == '\r' || ch == '\f')

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]