Home | History | Annotate | Download | only in libedit
History log of /src/lib/libedit/tokenizer.c
RevisionDateAuthorComments
 1.29  30-May-2023  christos Fix some const qual (Piotr Pawel Stefaniak)
 1.28  11-Apr-2016  christos Get rid of private/public; keep protected (Ingo Schwarze)
 1.27  11-Apr-2016  christos chartype cleanups from Ingo Schwarze:

- The file tokenizer.c no longer uses chartype.h,
so don't include the header.

- The dummy definitions of ct_{de,en}code_string() for the
NARROWCHAR case are only used in history.c, so move them there.

- Now the whole content of chartype.h is for the wide character
case only. So remove the NARROWCHAR ifdef and include the
header only in the wide character case.

- In chartype.h, move ct_encode_char() below the comment explaining it.

- No more need for underscores before ct_{de,en}code_string().

- Make the conversion buffer resize functions private.
They are only called from the decoding and encoding functions
inside chartype.c, and no need can possibly arise to call them
from anywhere else.
 1.26  11-Apr-2016  christos Char -> wchar_t from Ingo Schwarze.
 1.25  11-Apr-2016  christos more macro WIDECHAR undoing from Ingo Schwarze.
 1.24  17-Feb-2016  christos whitespace and header sorting changes (Ingo Schwarze). No functional changes.
 1.23  15-Feb-2016  christos OpenBSD tokenizer.c rev. 1.8 2003/08/11 18:21:40 deraadt
don't increase amax on realloc failure
 1.22  30-Jan-2016  christos Fix misplaced parentheses (Ingo Schwarze)
 1.21  16-Aug-2011  christos re-enable -Wconversion
 1.20  29-Jul-2011  christos KNF return (\1); -> return \1;
 1.19  28-Jul-2011  christos kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations.
 1.18  03-Jan-2010  christos rename historyw -> history_w for consistency.
add wide tst code and make it the default.
 1.17  30-Dec-2009  christos Fix wide build, test it, but don't turn it on yet.
 1.16  30-Dec-2009  christos Wide character support (UTF-8) from Johny Mattsson; currently disabled.
 1.15  15-Feb-2009  christos pass lint on _LP64.
 1.14  05-Dec-2003  lukem branches: 1.14.40;
Tokenization function enhancements:
* Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str()
publically available in <histedit.h>
* Documented the public functions in editline(3)
* Renamed tok_line() -> tok_str()
* Added new tok_line() which takes a "const LineInfo *" instead of
"const char *" (the former has "cursor" information), and optionally
return the argv index ("int *cursorc") and offset within that index
("int *cursorv"). This means that completion routines can use the
tokenization code to crack the line and easily find which word the
cursor is at. (mmm, context sensitive completion :)
* Fixed TEST/test.c when using "continuation" lines (unmatched quote
or \ at EOL), and added some more DEBUG messages including highlighting
where the cursor is (with a `_').
 1.13  18-Oct-2003  christos change allocation policy in el_push to allocate the string itself.
fix issues with strdup.
 1.12  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.11  27-Oct-2002  christos don't crash in memory shortage conditions.
 1.10  18-Mar-2002  christos - constify; passes all gcc and lint strict checks.
- add config.h [Jason Evans], to create a portable version of libedit that
can be easily compiled on other OS's.
 1.9  31-Jan-2002  christos don't forget to re-adjust the limit.
 1.8  31-Jan-2002  christos make pointer arithmetic more palatable.
 1.7  04-Jan-2001  christos consistently check for allocation failures and return -1, if we could not
get more memory.
 1.6  04-Sep-2000  lukem convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents
 1.5  02-Jul-1999  simonb More trailing white space.
 1.4  12-Dec-1998  christos delint
 1.3  06-Jul-1997  christos Fix compiler warnings.
 1.2  11-Jan-1997  lukem RCSid police
editline first appeared in 4.4BSD not NetBSD1.0
 1.1  06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  06-May-1994  cgd libedit!
 1.14.40.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

RSS XML Feed