gtx: Tidy header includes
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 24 Mar 2011 21:08:35 +0000 (21:08 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 29 Mar 2011 12:17:09 +0000 (05:17 -0700)
Since we adopted libroken, we get a lot of header includes automatically
from roken.h. Use these, instead of including lots of things multiple
times.

Change-Id: I444a8a325cca8da76f410185949103ccd873c743
Reviewed-on: http://gerrit.openafs.org/4329
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

17 files changed:
src/gtx/X11windows.c
src/gtx/cb_test.c
src/gtx/curses_test.c
src/gtx/curseswindows.c
src/gtx/dumbwindows.c
src/gtx/frame.c
src/gtx/gtxtest.c
src/gtx/input.c
src/gtx/keymap.c
src/gtx/lightobject.c
src/gtx/objdict.c
src/gtx/object_test.c
src/gtx/objects.c
src/gtx/screen_test.c
src/gtx/textcb.c
src/gtx/textobject.c
src/gtx/windows.c

index 419655d..951a607 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxX11win.h"         /*Interface definition */
-#include <stdio.h>             /*Standard I/O package */
 
-#if    !defined(NeXT)
-extern int errno;              /*System error number */
-#endif /* NeXT */
 int X11_debug;                 /*Is debugging turned on? */
 static char mn[] = "gator_X11windows"; /*Module name */
 
index 53868b2..1d0a032 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxtextcb.h"         /*Module interface */
 
-
 #include "AFS_component_version_number.c"
 
 main(argc, argv)
index 4b3f32d..808b628 100644 (file)
@@ -14,6 +14,8 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
+
 #if defined(AFS_HPUX110_ENV) && !defined(__HP_CURSES)
 # define __HP_CURSES
 #endif
index 1d28040..7ac8fb1 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-
-#include <sys/types.h>
-#include <sys/file.h>
 #if !defined(AFS_SUN5_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_FBSD80_ENV)
 #include <sgtty.h>
 #endif
-#include <stdio.h>
-#include <sys/time.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
 
 #include <lwp.h>
 
@@ -37,8 +30,6 @@
 #include "gtxobjects.h"
 #include "gtxframe.h"
 
-
-
 int curses_debug;              /*Is debugging turned on? */
 static char mn[] = "gator_curseswindows";      /*Module name */
 
index 3237de4..56af6cf 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxdumbwin.h"                /*Interface definition */
-#include <stdio.h>             /*Standard I/O package */
-#include <errno.h>
 
 int dumb_debug;                        /*Is debugging turned on? */
 static char mn[] = "gator_dumbwindows";        /*Module name */
index 620be0a..b755b5b 100644 (file)
 #include <afs/param.h>
 #include <afs/stds.h>
 
-#ifdef AFS_HPUX_ENV
-#include <sys/types.h>
-#endif
+#include <roken.h>
+
 #include <lwp.h>
 
-#include <string.h>
-#include <stdlib.h>
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
 #include "gtxobjects.h"
 #include "gtxwindows.h"
 #include "gtxcurseswin.h"
index 29fabf5..fef3703 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-#include <string.h>
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
 #include "gtxwindows.h"
 #include "gtxobjects.h"
 #include "gtxtextobj.h"
index 4fa7d33..932ce85 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
-#include <stdlib.h>
+#include <roken.h>
 
-#ifdef AFS_HPUX_ENV
-#include <sys/types.h>
-#endif
 #include <lwp.h>
+
 #include "gtxobjects.h"
 #include "gtxwindows.h"
 #include "gtxcurseswin.h"
index 0cc8beb..db4a99d 100644 (file)
@@ -10,9 +10,7 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
-
-#include <string.h>
-#include <stdlib.h>
+#include <roken.h>
 
 #include "gtxkeymap.h"
 
index 71df8b2..cc51f2b 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxlightobj.h"       /*Interface for this module */
-#include <stdio.h>             /*Standard I/O stuff */
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
 
 /*Externally-advertised array of light onode operations*/
 struct onodeops gator_light_ops = {
index c2ded9c..da39db7 100644 (file)
@@ -16,9 +16,9 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxobjdict.h"                /*Interface for this module */
-#include <stdio.h>             /*Standard I/O package */
 
 static char mn[] = "gator_objdict";    /*Module name */
 static int objdict_debug;      /*Is debugging turned on? */
index e06c344..95beaa5 100644 (file)
@@ -14,6 +14,9 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
+
+#include <afs/cmd.h>           /*Command interpretation library */
 
 #include "gtxscreenobj.h"      /*Gator screen object interface */
 #include "gtxtextobj.h"                /*Gator text object interface */
@@ -22,9 +25,6 @@
 #include "gtxcurseswin.h"      /*Gator curses window package */
 #include "gtxdumbwin.h"                /*Gator dumb terminal window package */
 #include "gtxX11win.h"         /*Gator X11 window package */
-#include <errno.h>
-#include <stdio.h>             /*Standard I/O stuff */
-#include <cmd.h>               /*Command interpretation library */
 
 
 /*
index 1dfcf95..4023a70 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxobjects.h"                /*Interface for this module */
 #include "gtxtextobj.h"                /*Text object interface */
 #include "gtxlightobj.h"       /*Light object interface */
 #include "gtxobjdict.h"                /*Object dictionary module */
-#include <stdio.h>             /*Standard I/O stuff */
-#include <errno.h>
-
-#include <string.h>
-#include <stdlib.h>
 
 /*
  * Number of known gator object types.
index ac9c858..f94e650 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
+
+#include <afs/cmd.h>           /*Command interpretation library */
 
 #include "gtxwindows.h"                /*Generalized window interface */
 #include "gtxcurseswin.h"      /*Curses window interface */
 #include "gtxdumbwin.h"                /*Dumb terminal window interface */
 #include "gtxX11win.h"         /*X11 window interface */
-#include <cmd.h>               /*Command interpretation library */
-#include <errno.h>
 
 
 /*
index 0f15d72..857e153 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxtextcb.h"         /*Module interface */
-#include <stdio.h>             /*Standard I/O stuff */
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
 
 static int gator_textcb_debug; /*Is debugging output turned on? */
 
index ffe0042..e7464fd 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "gtxtextobj.h"                /*Interface for this module */
 #include "gtxwindows.h"                /*Gator window interface */
 #include "gtxcurseswin.h"      /*Gator curses window interface */
 #include "gtxdumbwin.h"                /*Gator dumb terminal window interface */
 #include "gtxX11win.h"         /*Gator X11 window interface */
-#include <stdio.h>             /*Standard I/O stuff */
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
 
 /*Externally-advertised array of text onode operations*/
 struct onodeops gator_text_ops = {
index 45c391e..b9fd4e9 100644 (file)
@@ -18,6 +18,7 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 /* On DUX "IN" is a variable in curses.h, so this can be a bit of a problem */
 #ifdef IN