mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
gtx: Tidy header includes
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>
This commit is contained in:
parent
ffd91d91f4
commit
8608ca6771
@ -18,13 +18,10 @@
|
||||
#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 */
|
||||
|
||||
|
@ -14,10 +14,10 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#include "gtxtextcb.h" /*Module interface */
|
||||
|
||||
|
||||
#include "AFS_component_version_number.c"
|
||||
|
||||
main(argc, argv)
|
||||
|
@ -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
|
||||
|
@ -18,18 +18,11 @@
|
||||
#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 */
|
||||
|
||||
|
@ -16,10 +16,9 @@
|
||||
#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 */
|
||||
|
@ -11,16 +11,10 @@
|
||||
#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"
|
||||
|
@ -10,11 +10,8 @@
|
||||
#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"
|
||||
|
@ -10,12 +10,10 @@
|
||||
#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"
|
||||
|
@ -10,9 +10,7 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <roken.h>
|
||||
|
||||
#include "gtxkeymap.h"
|
||||
|
||||
|
@ -16,12 +16,9 @@
|
||||
#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 = {
|
||||
|
@ -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? */
|
||||
|
@ -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 */
|
||||
|
||||
|
||||
/*
|
||||
|
@ -16,16 +16,12 @@
|
||||
#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.
|
||||
|
@ -14,13 +14,14 @@
|
||||
#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>
|
||||
|
||||
|
||||
/*
|
||||
|
@ -16,12 +16,9 @@
|
||||
#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? */
|
||||
|
||||
|
@ -14,16 +14,13 @@
|
||||
#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 = {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user