Home | History | Annotate | Download | only in libedit
History log of /src/lib/libedit/read.h
RevisionDateAuthorComments
 1.13  30-Oct-2022  christos improvements in malloc/free handling.
 1.12  22-May-2016  christos Stop the read module from poking the el_chared.c_macro data structure
currently belonging to the chared module. The read module does so
from three of its functions, while no other module uses the macro
data, not even the chared module itself. That's quite logical
because macros are a feature of input handling, all of which is
done by the read module, and none by the chared module. So move
the data into the read modules's own opaque data structure, struct
el_read_t.

That simplifies internal interfaces in several respects: The
semi-public chared.h has one fewer struct, one fewer #define, and
one fewer member in struct el_chared_t; all three move to one single
C file, read.c, and are now module-local. And the internal interface
function ch_reset() needs one fewer argument, making the code of many
functions in various modules more readable.

The price is one additional internal interface function, read_end(),
10 lines long including comments, called publicly from exactly one
place: el_end() in el.c. That's hardly an increase in complexity
since most other modules already have their *_end() function, read.c
was the odd one out not having one.

From Ingo Schwarze
 1.11  09-May-2016  christos s/protected/libedit_private/g
 1.10  19-Apr-2016  christos From Ingo Schwarze:
- Put the data type el_rfunc_t into the public header <histedit.h>.
- Make el_read in struct editline an opaque pointer rather
than an embedded struct.
- Do not include "read.h" everywhere, but only in the two files
needing access to el_read, read.c and el.c.
- To functions that don't need more, pass the struct el_read_t *
rather than the full EditLine *.
- Of course, that means that read_init() can now fail from
memory exhaustion, but it's easy to clean up after that.
 1.9  24-Feb-2016  christos Make the read_char function always take a wchar_t * argument (Ingo Schwarze)
 1.8  17-Feb-2016  christos whitespace and header sorting changes (Ingo Schwarze). No functional changes.
 1.7  30-Dec-2009  christos Wide character support (UTF-8) from Johny Mattsson; currently disabled.
 1.6  29-Apr-2008  martin Convert to new 2 clause license
 1.5  21-Aug-2006  christos branches: 1.5.16;
Change to a 3 clause copyright after permission of the holders.
 1.4  27-Feb-2004  christos Better fix for rl_prep_terminal() from Gerry Swislow.
 1.3  21-Feb-2004  christos Separate tty separation from the prompt printing function. From Gerry Swislow.
 1.2  26-Sep-2003  christos Implement enough of readline's 4.0 async mode to make gdb happy. This is
not complete yet, but it seems to work...
This required to introduce an unbuffered mode to el_gets(), but that was
a minor change.
 1.1  27-Sep-2001  christos PR/14067: Anthony Mallet: Provide a programmatic way to set the read_char
function via a new el_set() operation.
Thanks, nicely done :-)
 1.5.16.1  18-May-2008  yamt sync with head.

RSS XML Feed