diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2024-03-05 03:43:57 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2024-03-05 05:33:20 -0500 |
commit | 4b01408715cd10e3bf02eb1e87531917a09c2645 (patch) | |
tree | bd2467334f2da3812b5b9471ee18fff33af0054b | |
parent | 365a94b62df6144ad016e587f3756d974b6e2018 (diff) |
include "gram.h" only from "parse.h"
all of the users of (generated) gram.h rely upon (custom) parse.h,
and the order of those headers affects portability.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/events.c | 1 | ||||
-rw-r--r-- | src/icons.c | 1 | ||||
-rw-r--r-- | src/lex.l | 1 | ||||
-rw-r--r-- | src/list.c | 2 | ||||
-rw-r--r-- | src/menus.c | 1 | ||||
-rw-r--r-- | src/parse.c | 1 | ||||
-rw-r--r-- | src/parse.h | 1 | ||||
-rw-r--r-- | src/twm.c | 1 | ||||
-rw-r--r-- | src/util.c | 2 |
9 files changed, 3 insertions, 8 deletions
diff --git a/src/events.c b/src/events.c index 585ae16..4b3f1c6 100644 --- a/src/events.c +++ b/src/events.c @@ -66,7 +66,6 @@ in this Software without prior written authorization from The Open Group. #include "events.h" #include "resize.h" #include "parse.h" -#include "gram.h" #include "util.h" #include "screen.h" #include "icons.h" diff --git a/src/icons.c b/src/icons.c index 3ebb4b2..4957e51 100644 --- a/src/icons.c +++ b/src/icons.c @@ -35,7 +35,6 @@ in this Software without prior written authorization from The Open Group. #include "twm.h" #include "screen.h" #include "icons.h" -#include "gram.h" #include "parse.h" #include "util.h" @@ -66,7 +66,6 @@ in this Software without prior written authorization from The Open Group. /* #include <stdio.h> */ /* lex already includes stdio.h */ #include "twm.h" -#include "gram.h" #include "list.h" #include "parse.h" @@ -61,7 +61,7 @@ in this Software without prior written authorization from The Open Group. #include <stdio.h> #include "twm.h" #include "screen.h" -#include "gram.h" +#include "parse.h" #include "util.h" struct name_list_struct { diff --git a/src/menus.c b/src/menus.c index 44e0904..ed06453 100644 --- a/src/menus.c +++ b/src/menus.c @@ -70,7 +70,6 @@ in this Software without prior written authorization from The Open Group. #include "events.h" #include "util.h" #include "parse.h" -#include "gram.h" #include "screen.h" #include "menus.h" #include "iconmgr.h" diff --git a/src/parse.c b/src/parse.c index 4ffc4aa..c659e53 100644 --- a/src/parse.c +++ b/src/parse.c @@ -66,7 +66,6 @@ in this Software without prior written authorization from The Open Group. #include "screen.h" #include "menus.h" #include "util.h" -#include "gram.h" #include "parse.h" #include <X11/Xatom.h> diff --git a/src/parse.h b/src/parse.h index a208cc8..2327ab1 100644 --- a/src/parse.h +++ b/src/parse.h @@ -61,6 +61,7 @@ in this Software without prior written authorization from The Open Group. #define PARSE_H #include "list.h" +#include "gram.h" extern void assign_var_savecolor(void); extern int do_single_keyword(int keyword); @@ -72,7 +72,6 @@ in this Software without prior written authorization from The Open Group. #include "menus.h" #include "events.h" #include "util.h" -#include "gram.h" #include "screen.h" #include "parse.h" #include "session.h" @@ -59,7 +59,7 @@ in this Software without prior written authorization from The Open Group. #include "twm.h" #include "util.h" -#include "gram.h" +#include "parse.h" #include "screen.h" #include <X11/Xos.h> #include <X11/Xatom.h> |