summaryrefslogtreecommitdiffstats
path: root/lib/libedit/filecomplete.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* get rid of the non-standard data type "Char" in almost all files;schwarze2016-04-111-7/+5
| | | | ok martijn@
* Move wrapper macros to the two files actually needing them:schwarze2016-04-111-8/+8
| | | | | | | | | | | FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -> history.c Strchr, tok_strdup -> tokenizer.c FUN, TYPE, STR -> both of these files OK martijn@ Also proofread by Christian Heckendorf <mbie at ulmus dot me> who reported some whitespace issues in parse.c.
* For pointers, use NULL rather than 0; no functional change;schwarze2016-04-091-3/+3
| | | | from Pedro Giffuni via Christos Zoulas.
* Cleanup of standard header inclusion:schwarze2016-03-201-9/+8
| | | | | | | | | | | | | 1. Add the missing <errno.h> to sig.c. 2. Do not include standard headers from private headers "chared.h" and "el.h", include them directly where needed. 3. Delete a few needless inclusions of <ctype.h>. 4. Sort the standard headers. 5. Delete _GNU_SOURCE weirdness from histedit.h, that file doesn't even need the access to wcsdup(3) mentioned in the comment. 6. Delete some trailing blanks and blanks before tabs. OK czarkoff@
* Cleanup of private header inclusion:schwarze2016-03-201-3/+1
| | | | | | | | | | | | | | 1. Do not include private headers from "chared.h", "hist.h", "prompt.h", "refresh.h", "search.h", "sig.h", "terminal.h", "tty.h". The only private header having to include other private headers is "el.h". 2. Do not include "common.h", "parse.h", "help.h" from "el.h", and do not include "emacs.h" and "vi.h" from "chared.h", include them directly where needed. 3. Do include "fcns.h" from "el.h" because el_func_t is needed for "map.h". 4. Do not include private headers again that are already included by "el.h". 5. Include private headers after standard headers. OK czarkoff@
* trivial partial sync to NetBSD, no functional change:schwarze2016-01-311-12/+7
| | | | | | * remove unused ifdef'ed header junk * remove pointless cast of NULL * wrap two excessively long lines
* Fourth step in synching with NetBSD:schwarze2016-01-301-9/+9
| | | | | | | KNF: Remove parentheses from return lines. No object change. This makes emacs.c and prompt.c identical to the NetBSD versions. It reduces the remaining diff from +2053 -1261 to +1526 -734. OK czarkoff@
* Third step in synching with NetBSD:schwarze2016-01-301-2/+2
| | | | | | | | | | | * rename fkey_t to funckey_t and el_term_t to el_terminal_t * rename struct editline member el_term to el_terminal * rename many functions in terminal.c from term_*() to terminal_*(), for consistency with the file name and to not look related to <term.h> No functional change. This makes refresh.c and sig.c almost identical to the NetBSD versions. It reduces the remaining diff from +2446 -1805 to +2053 -1420. OK czarkoff@
* Remove non-exposed malloc/realloc/free wrappers, and then substitutederaadt2014-10-171-8/+2
| | | | | reallocarray() where it helps. ok doug
* Userland reallocarray() audit.doug2014-10-111-3/+3
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* sync with upstream, retaining local modifications.okan2011-07-071-38/+61
| | | | ok nicm@
* Update libedit to bring it into sync with the latest version from NetBSD.nicm2010-06-301-0/+548
ok deraadt