History log of /src/lib/libedit/search.c |
Revision | | Date | Author | Comments |
1.52 |
| 30-Jun-2024 |
christos | Prevent reading before the line buffer (try ^R^W in emacs mode at the beginning of the line) (Robert Morris) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279426
|
1.51 |
| 30-Mar-2020 |
ryo | branches: 1.51.8; patbuf must be updated if the length of patbuf is greater than or equal to 0. (that is always) fix of r1.7 was incorrect.
|
1.50 |
| 30-Mar-2020 |
ryo | fix build error with SDEBUG, MAP_DEBUG, DEBUG_REFRESH
|
1.49 |
| 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.48 |
| 26-Feb-2018 |
christos | branches: 1.48.4; PR/53058: Nikhil Benesch: use correctly typed variables (wchar_t vs wint_t) as parameters.
|
1.47 |
| 09-May-2016 |
christos | s/protected/libedit_private/g
|
1.46 |
| 28-Apr-2016 |
christos | Initialize patbuf (Ingo Schwarze)
|
1.45 |
| 18-Apr-2016 |
christos | From Ingo Schwarze: * Replace fcns.c by a shorter and simpler func.h and include it only in the one file needing it, map.c. * Combine help.h and help.c into a simplified help.h and include it only in the one file needing it, map.c. * Check the very simple, static files editline.c, historyn.c, and tokenizern.c into CVS rather than needlessly generating them. * So we no longer autogenerate any C files. :-) * Shorten and simplify makelist by deleting the options -n, -e, -bc, and -m; the latter was unused and useless in the first place. * Move the declaration of el_func_t from fcns.h to the header actually needing it, map.h. Since that header is already included by el.h for unrelated reasons, that makes el_func_t just as globally available as before. * No longer include the simplified fcns.h into el.h, include it directly into the *.c files needing it.
|
1.44 |
| 11-Apr-2016 |
christos | Get rid of private/public; keep protected (Ingo Schwarze)
|
1.43 |
| 11-Apr-2016 |
christos | Char -> wchar_t from Ingo Schwarze.
|
1.42 |
| 11-Apr-2016 |
christos | more macro WIDECHAR undoing from Ingo Schwarze.
|
1.41 |
| 09-Apr-2016 |
christos | More WIDECHAR elimination (Ingo Schwarze)
|
1.40 |
| 23-Mar-2016 |
christos | Start removing the WIDECHAR ifdefs; building without it has stopped working anyway. (Ingo Schwarze)
|
1.39 |
| 24-Feb-2016 |
christos | Get split el_getc and el_wgetc completely and call el_wgetc internally. Change some character constants to they wide versions. (Ingo Schwarze)
|
1.38 |
| 16-Feb-2016 |
christos | More header cleanups from Ingo Schwarze.
|
1.37 |
| 16-Feb-2016 |
christos | more include file cleanup (Ingo Schwarze)
|
1.36 |
| 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.35 |
| 16-Feb-2016 |
christos | cleanup chartype.h includes (Ingo Schwarze)
|
1.34 |
| 16-Feb-2016 |
christos | cleanup inclusion of histedit.h (Ingo Schwarze)
|
1.33 |
| 14-Feb-2016 |
christos | From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces of libedit.
Now POSIX unconditionally requires that <wchar.h> defines the type wint_t. Consequently, it can be used unconditionally, no matter whether WIDECHAR is active or not. Consequently, the #define Int is pointless.
Note that removing it is not gratuitious churn. Auditing for integer signedness problems is already hard when only fundamental types like "int" and "unsigned" are involved. It gets very hard when types come into the picture that have platform-dependent signedness, like "char" and "wint_t". Adding yet another layer on top, changing both the signedness and the width in a platform- dependent way, makes auditing yet harder, which IMHO is really dangerous. Note that while removing the #define, i already found one bug caused by this excessive complication - in the function re_putc() in refresh.c. If WIDECHAR was defined, it printed an Int = wint_t value with %c. Fortunately, that bug only affects debugging, not production. The fix is contained in the patch.
With WIDECHAR, this doesn't change anything. For the case without WIDECHAR, i checked that none of the places wants to store values that might not fit in wint_t.
This only changes internal interfaces; public ones remain unchanged.
|
1.32 |
| 11-Feb-2016 |
christos | - Add some more Char casts - reduce ifdefs by providing empty defs for nls functions (Ingo Schwarze)
|
1.31 |
| 30-Jan-2016 |
christos | Fix misplaced parentheses (Ingo Schwarze)
|
1.30 |
| 04-Oct-2011 |
christos | fixed warnings where wint_t is unsigned.
|
1.29 |
| 16-Aug-2011 |
christos | re-enable -Wconversion
|
1.28 |
| 29-Jul-2011 |
christos | pass -Wconversion
|
1.27 |
| 29-Jul-2011 |
christos | KNF return (\1); -> return \1;
|
1.26 |
| 28-Jul-2011 |
christos | kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations.
|
1.25 |
| 28-Jul-2011 |
christos | term -> terminal
|
1.24 |
| 15-Apr-2010 |
christos | From Jess Thrysoee - Fix wint_t to Int confusion
|
1.23 |
| 30-Dec-2009 |
christos | Fix wide build, test it, but don't turn it on yet.
|
1.22 |
| 30-Dec-2009 |
christos | Wide character support (UTF-8) from Johny Mattsson; currently disabled.
|
1.21 |
| 15-Feb-2009 |
christos | pass lint on _LP64.
|
1.20 |
| 04-Nov-2004 |
christos | branches: 1.20.34; Make EM_DELETE_PREV_CHAR behave like ED_DELETE_PREV_CHAR in incremental search. From Gerry Swislow.
|
1.19 |
| 25-Oct-2003 |
christos | Another fix for incremental search prev.
|
1.18 |
| 18-Oct-2003 |
christos | make forward incremental search work better.
|
1.17 |
| 17-Oct-2003 |
christos | When searching backwards don't include the characters after the cursor in the search.
|
1.16 |
| 16-Oct-2003 |
christos | Fix incremental search which was badly busted.
|
1.15 |
| 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.14 |
| 20-Nov-2002 |
christos | Fix problem with previous patches that broke vi history. - c_gets() was usually returning a length, but sometimes one of the CC_xxx values (which are small +ve integers)! - fixed c_gets() by putting a ' ' under the cursor. From David Laight.
|
1.13 |
| 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.12 |
| 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.11 |
| 23-Jan-2001 |
jdolecek | sprinkle couple const
|
1.10 |
| 04-Jan-2001 |
christos | consistently check for allocation failures and return -1, if we could not get more memory.
|
1.9 |
| 04-Sep-2000 |
lukem | convert to new style guide, which includes: - ansi prototypes & features (such as stdargs) - 8 space indents
|
1.8 |
| 02-Jul-1999 |
simonb | More trailing white space.
|
1.7 |
| 05-Feb-1999 |
christos | delint.
|
1.6 |
| 02-Sep-1998 |
christos | PR/6081: Wolfgang Helbig: search broken in vi mode. When patbuf was changed to be dynamically allocated, sizeof was not changed appropriately.
|
1.5 |
| 06-Jul-1997 |
christos | Fix compiler warnings.
|
1.4 |
| 23-Jan-1997 |
mrg | - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions. - some KNF.
|
1.3 |
| 11-Jan-1997 |
lukem | RCSid police editline first appeared in 4.4BSD not NetBSD1.0
|
1.2 |
| 02-Oct-1994 |
jtc | Added code so that POSIX.2 regular expresion functions are used if REGEX is defined, V8 regular expresion functions are used if REGEXP is defined, and BSD regular expression functions are used if neither are defined. And defined REGEX in sys.h so that programs using libedit don't have to link with libcompat.
|
1.1 |
| 06-May-1994 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 06-May-1994 |
cgd | branches: 1.1.1.1.2; libedit!
|
1.1.1.1.2.1 |
| 07-Oct-1994 |
mycroft | Update from trunk.
|
1.20.34.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
|
1.48.4.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.48.4.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.51.8.1 |
| 01-Jul-2024 |
perseant | Sync with HEAD.
|