diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-03-20 22:58:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-03-20 22:58:00 +0000 |
commit | 9621f647cee71d37109886077ad0c87c3701b2a2 (patch) | |
tree | 617603aa22e5da79f07eb6d9fdf0c98a577b8745 /lib/libedit/chared.h | |
parent | 6aeeb948f407af0fb507bee333795cec095d00f3 (diff) |
Cleanup of private header inclusion:
1. Do not include private headers from "chared.h", "hist.h", "prompt.h",
"refresh.h", "search.h", "sig.h", "terminal.h", "tty.h".
The only private header having to include other private headers is "el.h".
2. Do not include "common.h", "parse.h", "help.h" from "el.h",
and do not include "emacs.h" and "vi.h" from "chared.h",
include them directly where needed.
3. Do include "fcns.h" from "el.h" because el_func_t is needed for "map.h".
4. Do not include private headers again that are already included by "el.h".
5. Include private headers after standard headers.
OK czarkoff@
Diffstat (limited to 'lib/libedit/chared.h')
-rw-r--r-- | lib/libedit/chared.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libedit/chared.h b/lib/libedit/chared.h index 1913ab55310..e8cf3dea6d1 100644 --- a/lib/libedit/chared.h +++ b/lib/libedit/chared.h @@ -1,4 +1,4 @@ -/* $OpenBSD: chared.h,v 1.11 2016/03/20 20:35:38 schwarze Exp $ */ +/* $OpenBSD: chared.h,v 1.12 2016/03/20 22:57:59 schwarze Exp $ */ /* $NetBSD: chared.h,v 1.20 2010/04/15 00:57:33 christos Exp $ */ /*- @@ -44,8 +44,6 @@ #include <ctype.h> #include <string.h> -#include "histedit.h" - #define EL_MAXMACRO 10 /* @@ -137,12 +135,6 @@ typedef struct el_chared_t { #define MODE_REPLACE 1 #define MODE_REPLACE_1 2 -#include "common.h" -#include "vi.h" -#include "emacs.h" -#include "search.h" -#include "fcns.h" - protected int cv__isword(wint_t); protected int cv__isWord(wint_t); |