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/eln.c | |
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/eln.c')
-rw-r--r-- | lib/libedit/eln.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libedit/eln.c b/lib/libedit/eln.c index 3395b239720..109c682d866 100644 --- a/lib/libedit/eln.c +++ b/lib/libedit/eln.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eln.c,v 1.8 2016/03/20 19:33:16 schwarze Exp $ */ +/* $OpenBSD: eln.c,v 1.9 2016/03/20 22:57:59 schwarze Exp $ */ /* $NetBSD: eln.c,v 1.9 2010/11/04 13:53:12 christos Exp $ */ /*- @@ -35,14 +35,13 @@ */ #include "config.h" -#include "histedit.h" -#include "el.h" -#include "read.h" #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> +#include "el.h" + public int el_getc(EditLine *el, char *cp) { |