History log of /src/lib/libedit/hist.c |
Revision | | Date | Author | Comments |
1.34 |
| 23-Jul-2019 |
christos | put the NULL check immediately after the allocation
|
1.33 |
| 23-Jul-2019 |
christos | PR/54399: S�ren Tempel: Uninitialized memory access in libedit history. Initialize the buffer using calloc. While here change all malloc(a * sizeof(b)) to calloc(a, sizeof(b)). XXX: should fix realloc similarly.
|
1.32 |
| 05-Mar-2017 |
christos | branches: 1.32.12; one extra char for NUL.
|
1.31 |
| 05-Mar-2017 |
christos | Grow the buffer for event search if there was not enough space. From Gerry Swislow
|
1.30 |
| 07-Nov-2016 |
christos | branches: 1.30.2; Change the way the built-in history works; some programs enter history with the trailing newline, others don't so don't make any assumptions about it when printing. Also print the correct event number (generated), separate the event number from the event with a tab, and visually encode the string (don't encode tabs and spaces though).
|
1.29 |
| 09-May-2016 |
christos | branches: 1.29.2; s/protected/libedit_private/g
|
1.28 |
| 11-Apr-2016 |
christos | Char -> wchar_t from Ingo Schwarze.
|
1.27 |
| 11-Apr-2016 |
christos | more macro WIDECHAR undoing from Ingo Schwarze.
|
1.26 |
| 09-Apr-2016 |
christos | More WIDECHAR elimination (Ingo Schwarze)
|
1.25 |
| 23-Mar-2016 |
christos | Start removing the WIDECHAR ifdefs; building without it has stopped working anyway. (Ingo Schwarze)
|
1.24 |
| 16-Feb-2016 |
christos | More header cleanups from Ingo Schwarze.
|
1.23 |
| 16-Feb-2016 |
christos | From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also makes it easier to follow what is going on, even though not quite as nice. But it seems like the best we can do...
|
1.22 |
| 16-Feb-2016 |
christos | cleanup chartype.h includes (Ingo Schwarze)
|
1.21 |
| 16-Feb-2016 |
christos | cleanup inclusion of histedit.h (Ingo Schwarze)
|
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 |
| 28-Jul-2011 |
christos | fix confusion with wide functions.
|
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 |
| 01-Nov-2003 |
christos | Fixes from Otto Moerbeek otto at drijf dot net
|
1.14 |
| 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.13 |
| 19-Jun-2003 |
christos | From michael@moria.de: - use __attribute__((__unused__)) in arguments where appropriate. - some int -> size_t and char * to const char * conversions.
|
1.12 |
| 21-Jan-2003 |
christos | Add a uniquefier for the history function.
|
1.11 |
| 15-Nov-2002 |
christos | PR/18995: David Laight: libedit fixes for posix conformant sh
The posix 'sh' specification defines vi-mode editing quite tightly. The netbsd libedit code (used by sh to do this) was missing several features, there were also minor errors in others.
Compare netbsd sh to the definition available from: http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html In particular the following were not supported: U - undo all changes to line | - goto column Y - yank to end of line y - yank # - comment out current line @ - take input from shell alias [1] G - goto numbered line in history buffer v - edit history line with vi _ - append word from last input line . - redo last command Other minor changes have also been made.
[1] This needs the shell to define an appropriate routine to return the text of the alias. There is no requirement that such a function exist.
|
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 |
| 17-May-2001 |
christos | PR/12963:Jason Waterman: Fix signed cast problems.
|
1.8 |
| 10-Jan-2001 |
jdolecek | Enlarge editline buffers as needed to support arbitrary length lines. This also addresses lib/9712 by Phil Nelson.
|
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 |
| 14-Oct-1997 |
christos | PR/4257: Jaromir Dolecek: history() has no generic error handling and isn't reentrant. This changes the interface of the history function, so we need a major number bump.
|
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.29.2.2 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.29.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.30.2.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.32.12.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|