diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-05-22 23:09:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-05-22 23:09:57 +0000 |
commit | ef8b1b00aed61bc6a471a607fb8bc029f404b1ce (patch) | |
tree | cc77b1ee87c8106f606e0fd4d3d3854f5587399b /lib/libedit/read.h | |
parent | 469fa820a861fd8f53dc72da4af67bbbbfdd2bc8 (diff) |
Improve modularization at the chared/read boundary, no functional change.
Stop the read.c module from poking the el_chared.c_macro data
structure that used to belong to the chared.c module. Given that
no other module, not even chared itself, is using that data, move it
into the read modules's own opaque data structure, struct el_read_t.
That gets rid of one struct, one #define, one struct member, and one
function argument in the chared.h interface.
OK czarkoff@
Diffstat (limited to 'lib/libedit/read.h')
-rw-r--r-- | lib/libedit/read.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/read.h b/lib/libedit/read.h index 9487874a4e4..bb75a3547b5 100644 --- a/lib/libedit/read.h +++ b/lib/libedit/read.h @@ -1,5 +1,5 @@ -/* $OpenBSD: read.h,v 1.6 2016/05/20 15:30:17 schwarze Exp $ */ -/* $NetBSD: read.h,v 1.9 2016/02/24 17:13:22 christos Exp $ */ +/* $OpenBSD: read.h,v 1.7 2016/05/22 23:09:56 schwarze Exp $ */ +/* $NetBSD: read.h,v 1.12 2016/05/22 19:44:26 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,6 +37,7 @@ #define _h_el_read protected int read_init(EditLine *); +protected void read_end(struct el_read_t *); protected void read_prepare(EditLine *); protected void read_finish(EditLine *); protected int el_read_setfn(struct el_read_t *, el_rfunc_t); |