summaryrefslogtreecommitdiffstats
path: root/lib/libedit/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2019-01-15Fix the inter-library dependency for libedit and libreadline.yasuoka1-3/+3
Previously they tried to depend on libtermcap which actually doesn't exist in the objdir. ok jca
2018-11-14Record an inter-library dependency on libcurses in libedit and libreadline,sthen1-1/+4
avoiding runtime failures on architectures using ld.lld. Also add a note to libcurses shlib_version reminding about bumps (as done with libcrypto/libssl). Thanks guenther@ for suggestions of tests involving library bumps and jca@ for doing these tests and hint about DPADD. Looks good kettenis@, ok jca@
2017-10-17remove the remaining references to .depend files since nothing creates themnaddy1-2/+2
any longer; ok espie@ deraadt@
2017-07-10remove misc. depend and yacc nits that no longer matter.espie1-2/+2
okay millert@
2017-07-03Generate source and header files for regress on demand.bluhm1-4/+6
OK espie@
2017-06-16mark files as BUILDFIRST, or write explicit dependencies, so that mostespie1-1/+2
programs will build even without a make depend first. okay tb@ millert@
2016-05-24Remove debugging ifdefs.schwarze1-2/+2
I'm debugging the read module for weeks now, but these ifdefs aren't helpful. OK cpp(1).
2016-05-10Enable separate compilation while keeping internal interfaces hidden.schwarze1-11/+5
Simplifies the build system and prevents modules from stomping on each other's static symbols. Based on a hint from guenther@, using feedback from kettenis@ and deraadt@.
2016-05-06Replace the generated file "fcns.c" by a simpler header "func.h"schwarze1-7/+7
included only in the one file needing it, "map.c". That allows to define el_action_t directly in "map.h", which in turn allows to stop including "fcns.h" from "el.h" and include it only in the modules needing it. Now we no longer autogenerate any C files. Feedback and OK martijn@. First version also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-05-03Combine help.h and help.c into a simplified help.hschwarze1-9/+6
and include it only in the one file needing it, map.c. Also delete makelist -bc. OK martijn@, also proofread by Christian Heckendorf <mbie at ulmus dot me>
2016-05-03The files editline.c, historyn.c, and tokenizern.c are completelyschwarze1-20/+8
constant and very short and simple. Check them into CVS rather than generating them at build time in a complicated way. OK martijn@, also proofread by Christian Heckendorf <mbie at ulmus dot me>
2016-04-20New editline(7) manual, explaining to end-users how line editing worksschwarze1-2/+2
in programs like ftp(1), sftp(1), bc(1), and cdio(1) that use libedit. The existing editrc(5) manual only explains customization, and the existing editline(3) manual only explains the C language interface. Already listing all editor functions and all default key bindings, but in other respects, not 100% complete yet, and due to the sheer size, some bugs may have slipped, but all that can be fixed in the tree. OK and tweaks jmc@. Also seems reasonable to Christian Heckendorf <mbie at ulmus dot me>.
2016-04-09Always compile with WIDECHAR on and delete that preprocessor switch.schwarze1-6/+1
OK martijn@. Diff also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-03-30for some time now mandoc has not required MLINKS to functionjmc1-22/+1
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-22format string fixes in debug code;schwarze1-3/+3
committing right away because this code is not even compiled by default
2016-03-21Reduce the FUN() macro madness by no longer applying it to el_[w]getc(3).schwarze1-3/+2
Always use el_wgetc(3) internally. In the !WIDECHAR case, casting the result to (Char) is safe because the function returns a byte rather than a character in that case. No functional change except for fixing a printf(3) format string issue when compiled with DEBUG_READ and WIDECHAR. OK czarkoff@
2016-03-20Cleanup of standard header inclusion:schwarze1-4/+4
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@
2016-01-29Start synching with NetBSD:schwarze1-3/+3
Rename the files key.[hc] to keymacro.[hc] and term.[hc] to terminal.[hc]. The change makes sense because "term.h" conflicts with <term.h> and the functions key_clear(), key_end(), and key_print() in "key.h" conflict with macros in <term.h>. No content change yet, no binary change in *.o after "strip -d". This reduces the remaining diff from +4634 -3992 to +2640 -1998. OK czarkoff@, and mmcc@ agrees with the direction.
2014-10-09USE_SHLIBDIR is archaicderaadt1-2/+1
2012-09-04remove lint leftovers; ok guenther@okan1-2/+1
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan1-2/+1
ok guenther@
2011-07-07Enable wide character functions in libedit (not the other libe*t).nicm1-10/+23
ok stsp deraadt
2010-06-30Update libedit to bring it into sync with the latest version from NetBSD.nicm1-12/+31
ok deraadt
2005-11-24use WANTLINT= (on all architectures)deraadt1-1/+2
2003-10-31Update to NetBSD libedit (from Oct 1, 2003), adding some stringotto1-30/+57
cleaning and history bug fixes. The code includes GNU libreadline functionality, but the corresponding header files are not installed, since some libreadline functions are missing. There are some minor API changes, notably: old: EditLine *el_init(const char *, FILE *, FILE *); new: EditLine *el_init(const char *, FILE *, FILE *, FILE *); old: HistEvent *history(History *h, int op, ...); new: int history(History *h, HistEvent *ev, int op, ...); plus some changes in operation names. See editline(3) for details. Tested by djm@, mouring@, jmc@. ok deraadt@
1998-07-24-lcurses, not termcap/termlibmillert1-2/+2
1997-06-29Updates from NetBSD (christos@netbsd.org)millert1-4/+3
* Portability fixes: __const -> const BADSIG -> SIG_ERR int flags -> u_int flags #if __STDC__ -> #ifdef __STDC__ * Don't allow CSWTCH to interfere with CSUSP on __SVR4 systems. * Return -1 if the terminal set operation resulted in dumb terminal settings. * Handle properly the case where the last line in the sourced file does not have a trailing '\n'. From Jeffrey C Honig. * editrc -> editline in editline(3)
1997-04-27COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIPmillert1-2/+2
This fixes namespace problems where STRIP is sometimes used as the name of the strip(1) to use and other times used as the flag to send install(1) when stripping (or not). COPY doesn't have this problem (yet) but was poorly named.
1997-01-16Merge in NetBSD libedit changes and new man pages. Also fix somemillert1-1/+11
strncpy() usage in their code. NetBSD change log was: * add a man page for the editline routines * add a man page describing editrc * fix bugs in el_parse(): * didn't execute command when program name matched (test reversed) * was checking against empty string instead of program name * after checks, command to run also pointed to empty string * document ^char and \ escape sequences * when parsing ^char control chars, check the correct char when determining validity (previously, ^char was a NOP interpreted as the literal string because of this bug) * Implement CC_REDISPLAY, which (unlike CC_REFRESH) redraws the entire input * line (a la ^R). This is useful if the binding outputs information and * mucks up the input line. To be used in ``list-choices'' bindings (refer * to the ^D binding in csh when filec is set)
1996-12-08install -> ${INSTALL}, -c -> ${COPY}downsj1-1/+1
1996-06-10includes targetderaadt1-1/+1
1995-10-18initial import of NetBSD treederaadt1-0/+59