The NetBSD Project

CVS log for src/lib/libedit/el.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libedit

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.71.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:17 2014 UTC (6 weeks, 1 day ago) by tls
Branch: tls-maxphys
Changes since 1.71.2.1: +9 -2 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.72.6.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:51:57 2014 UTC (7 weeks, 4 days ago) by tls
Branch: tls-earlyentropy
Changes since 1.72: +9 -2 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Rebase.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jun 18 18:12:28 2014 UTC (3 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7, HEAD
Changes since 1.72: +9 -2 lines
Diff to previous 1.72 (colored)

Don't depend on weak aliases to define the vi "alias" expansion function,
provide an API instead to set it.

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:36:55 2014 UTC (4 months, 1 week ago) by yamt
Branch: yamt-pagecache
Changes since 1.68.2.2: +13 -5 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:27:56 2013 UTC (19 months ago) by tls
Branch: tls-maxphys
Changes since 1.71: +13 -5 lines
Diff to previous 1.71 (colored)

resync with head

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jan 22 20:23:21 2013 UTC (20 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Changes since 1.71: +13 -5 lines
Diff to previous 1.71 (colored)

provide an el_init_fd function.

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:09 2012 UTC (23 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.68.2.1: +3 -3 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Tue Sep 11 11:58:53 2012 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

PR/46942: Steffen Nurpmeso: editline(3): el_get(): fix UNBUFFERED return

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:27 2012 UTC (2 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.68: +6 -15 lines
Diff to previous 1.68 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Sun Mar 11 21:14:56 2012 UTC (2 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored)

use arraycount

Revision 1.69 / (download) - annotate - [select for diffs], Fri Nov 18 20:22:03 2011 UTC (2 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.68: +4 -13 lines
Diff to previous 1.68 (colored)

remove unrecheable code (Kamil Dudka)

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jul 29 15:16:33 2011 UTC (3 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.67: +17 -17 lines
Diff to previous 1.67 (colored)

KNF return (\1); -> return \1;

Revision 1.67 / (download) - annotate - [select for diffs], Thu Jul 28 20:50:55 2011 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.66: +11 -11 lines
Diff to previous 1.66 (colored)

kill ptr_t and ioctl_t, add  * sizeof(*foo) to all allocations.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jul 28 01:56:27 2011 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

Rename key to keymacro to avoid conflicts with term.h. The renaming of term
to terminal was again to avoid conflicts with term.h. term.h is a moving
namespace violation.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jul 28 01:04:41 2011 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.64: +6 -6 lines
Diff to previous 1.64 (colored)

avoid shadowed variable

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jul 28 00:49:18 2011 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.63: +27 -26 lines
Diff to previous 1.63 (colored)

term -> terminal
eliminate MAXPATHLEN

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 26 21:03:17 2011 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.62: +4 -2 lines
Diff to previous 1.62 (colored)

don't stop reading after empty lines from: Nirbhay Choubey

Revision 1.62 / (download) - annotate - [select for diffs], Sun Mar 20 12:36:14 2011 UTC (3 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Fix use-after-free. Discovered by running tests with MALLOC_OPTIONS=J
(should this be the default for tests ?), pointed out by njoly@

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:00 2011 UTC (3 years, 7 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.60: +6 -2 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jan 27 23:11:40 2011 UTC (3 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.60: +6 -2 lines
Diff to previous 1.60 (colored)

don't turn on editing if stdout is not a tty.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 28 15:44:59 2010 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.59: +9 -2 lines
Diff to previous 1.59 (colored)

setup a callback to be invoked on resize buffers so that readline can
reset rl_line_buffer which unfortunately some applications use it directly.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Apr 15 00:56:40 2010 UTC (4 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.58: +7 -8 lines
Diff to previous 1.58 (colored)

From Jess Thrysoee
   - use nl_langinfo to test for UTF-8, because some locales are UTF-8 without
     reflecting it in their names.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Dec 31 15:58:26 2009 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored)

- Document and enable wide character support.
- Fix read function compatibility.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 30 23:54:52 2009 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

Fix wide build, test it, but don't turn it on yet.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 30 22:37:40 2009 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.55: +62 -58 lines
Diff to previous 1.55 (colored)

Wide character support (UTF-8) from Johny Mattsson; currently disabled.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jul 25 21:19:23 2009 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.54: +10 -2 lines
Diff to previous 1.54 (colored)

Ignore comment lines in .editrc from Jess Thrysoee

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jul 22 18:25:26 2009 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (colored)

Only need path if we have issetugid... From Anon Ymous

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jul 22 15:56:29 2009 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Move filename to the scope it is being used.
From Michael Cook mcook at bbn dot com

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:29 2009 UTC (5 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.47: +22 -6 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

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

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 11 18:33:30 2009 UTC (5 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.51: +10 -2 lines
Diff to previous 1.51 (colored)

restore binary compatibility by providing new prompt functions that take
an extra literal character.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Mar 31 17:38:27 2009 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.50: +14 -6 lines
Diff to previous 1.50 (colored)

Implement literal prompt sequences. Now someone can implement
RL_PROMPT_START_LITERAL/RL_PROMPT_END_LITERAL :-)

Revision 1.50 / (download) - annotate - [select for diffs], Sat Feb 21 00:05:23 2009 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.49: +5 -9 lines
Diff to previous 1.49 (colored)

back out all prompt changes. they are not needed.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Feb 19 20:27:11 2009 UTC (5 years, 7 months ago) by cube
Branch: MAIN
Changes since 1.48: +7 -5 lines
Diff to previous 1.48 (colored)

Order of evaluation of arguments is undefined, so call va_arg() in an
explicit order.  Fixes a segfault with bc reported by Patrick Welche on
current-users.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Feb 17 21:34:26 2009 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.47: +6 -4 lines
Diff to previous 1.47 (colored)

allow for a prompt argument.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 18 12:17:24 2009 UTC (5 years, 8 months ago) by lukem
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

fix -Wsign-compare issues

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Wed Sep 24 16:35:09 2008 UTC (6 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Sep 10 15:45:37 2008 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects. Mostly from Preston A. Elder.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Apr 5 15:53:28 2008 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.44: +8 -2 lines
Diff to previous 1.44 (colored)

add EL_REFRESH for the benefit of readline

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 15 22:13:33 2006 UTC (7 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Changes since 1.43: +81 -26 lines
Diff to previous 1.43 (colored)

add EL_GETFP, and EL_SETFP.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Nov 25 17:54:38 2006 UTC (7 years, 10 months ago) by freza
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

s/el->errfile/el->el_errfile/g in debug code, fixes MKDEBUGLIB build.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Nov 24 00:01:17 2006 UTC (7 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.41: +27 -44 lines
Diff to previous 1.41 (colored)

- Add more readline functions, enough for gdb-6.5
- Make el_get varyadic, and implement EL_GETTC.
- XXX: the EL_SETTC api will change in the future.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Aug 19 04:21:47 2005 UTC (9 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work
Fixed as suggested.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Aug 1 23:00:15 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Don't reset the macro strings each time we enter el_gets(), otherwise
el_push() is unusable programmatically.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Sat Jul 10 09:28:27 2004 UTC (10 years, 2 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.38: +7 -4 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Pull up revision 1.39 (requested by christos in ticket #620):
PR/23486: Andreas Gustafsson: gdb no longer works with emacs
- make sure that we keep previous contents of the buffer in unbuffered mode.
- when turning editing on and off keep tty consistent.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 8 00:51:36 2004 UTC (10 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.38: +7 -4 lines
Diff to previous 1.38 (colored)

PR/23486: Andreas Gustafsson: gdb no longer works with emacs
- make sure that we keep previous contents of the buffer in unbuffered mode.
- when turning editing on and off keep tty consistent.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Feb 27 14:52:18 2004 UTC (10 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

Better fix for rl_prep_terminal() from Gerry Swislow.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Feb 21 16:42:30 2004 UTC (10 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Separate tty separation from the prompt printing function. From Gerry Swislow.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Oct 18 23:48:42 2003 UTC (10 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.35: +7 -4 lines
Diff to previous 1.35 (colored)

change allocation policy in el_push to allocate the string itself.
fix issues with strdup.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 16 22:26:32 2003 UTC (10 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.34: +11 -2 lines
Diff to previous 1.34 (colored)

More libedit readline emulation functions from: Gerry Swislow
<gerry at certif dot com>

Revision 1.34 / (download) - annotate - [select for diffs], Fri Sep 26 17:44:51 2003 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.33: +19 -2 lines
Diff to previous 1.33 (colored)

Implement enough of readline's 4.0 async mode to make gdb happy. This is
not complete yet, but it seems to work...
This required to introduce an unbuffered mode to el_gets(), but that was
a minor change.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Sep 14 21:48:54 2003 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored)

- provide enough hooks to compile gdb-5.3
- fix el_get(e, EL_TERMINAL, (char **))

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:30 2003 UTC (11 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.31: +3 -7 lines
Diff to previous 1.31 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 19 15:55:05 2003 UTC (11 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 12 00:00:23 2002 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

Avoid strict alias warning.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 18 16:00:52 2002 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.28: +6 -8 lines
Diff to previous 1.28 (colored)

- 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.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 3 23:37:19 2002 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.27: +3 -5 lines
Diff to previous 1.27 (colored)

Don't use HAVE_ yet.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 3 23:30:03 2002 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.26: +19 -6 lines
Diff to previous 1.26 (colored)

Fix a warning.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Nov 8 19:34:41 2001 UTC (12 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +2 -5 lines
Diff to previous 1.25 (colored)

Remove an unused variable.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Nov 2 04:47:47 2001 UTC (12 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.24: +7 -3 lines
Diff to previous 1.24 (colored)

If term_init() fails, cleanup and return NULL. This avoids other lossage.
Pointed by charles.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Oct 9 13:50:30 2001 UTC (12 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.23: +11 -2 lines
Diff to previous 1.23 (colored)

PR/14188: Anthony Mallet: Provide an opaque data pointer to client programs.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Sep 27 19:29:50 2001 UTC (13 years ago) by christos
Branch: MAIN
Changes since 1.22: +15 -2 lines
Diff to previous 1.22 (colored)

PR/14067: Anthony Mallet: Provide a programmatic way to set the read_char
function via a new el_set() operation.
Thanks, nicely done :-)

Revision 1.22 / (download) - annotate - [select for diffs], Mon Sep 24 13:22:30 2001 UTC (13 years ago) by wiz
Branch: MAIN
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 5 22:45:30 2001 UTC (13 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.20: +2 -12 lines
Diff to previous 1.20 (colored)

depoison the pure editline code from readline compatibility hacks.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 11 22:18:57 2000 UTC (13 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

- add support for home and end keys.
- improve debugging support

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 4 22:06:29 2000 UTC (14 years ago) by lukem
Branch: MAIN
Changes since 1.18: +304 -328 lines
Diff to previous 1.18 (colored)

convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Wed Aug 2 13:45:40 2000 UTC (14 years, 2 months ago) by chuck
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.16.4.1: +15 -2 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

pull up 1.18 (approved by thorpej).   allows a gdb linked with libedit's
readline emulation to work properly with xxgdb.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 2 03:36:39 2000 UTC (14 years, 2 months ago) by chuck
Branch: MAIN
Changes since 1.17: +15 -2 lines
Diff to previous 1.17 (colored)

make xxgdb and a gdb linked with libedit's readline emulation work
properly together.   xxgdb communicates with a gdb running on a pty
that it sets to -echo,-onlcr prior to forking the gdb process.
GNU readline preserves the -echo setting while libedit was undoing it
(setting the tty to a sane state and totally confusing xxgdb's parser).

this diff simply disables libedit if both readline emulation and
"stty -echo" are used/set.   that is enough to make xxgdb work once
again, but (XXX) this is not how GNU readline handles stty -echo (it
does not echo anything, but editing commands like ^A,^K, etc.
still work), so the readline emulation isn't perfect.

change reviewed by christos.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Thu Jun 29 16:09:42 2000 UTC (14 years, 3 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.12: +6 -9 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Pull up revision 1.17 (via patch, requested by sommerfeld):
  Only read .editrc from home directory.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Wed Jun 28 22:09:04 2000 UTC (14 years, 3 months ago) by sommerfeld
Branch: netbsd-1-5
Changes since 1.16: +11 -12 lines
Diff to previous 1.16 (colored)

Pull up 1.17 (approved by thorpej): only look for .editrc in /d1/sommerfeld

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 28 20:37:44 2000 UTC (14 years, 3 months ago) by sommerfeld
Branch: MAIN
Changes since 1.16: +11 -12 lines
Diff to previous 1.16 (colored)

Only look in home directory for .editrc.  (Discussed with Christos.)

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 15 12:15:38 2000 UTC (14 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

don't dump core on empty files.

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:29:57 1999 UTC (14 years, 9 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.14: +6 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up to last week's -current.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 12 01:05:07 1999 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.14: +6 -4 lines
Diff to previous 1.14 (colored)

- implement printing a right-side prompt. code derived from similar work
  I wrote for tcsh(1) three years ago.
- implement EL_RPROMPT, which allows a setting/getting of a function which
  returns a string to be used as the right-side prompt.
- improve HISTORY and AUTHORS sections in editline(3).
- bump shlib minor version for EL_RPROMPT.

XXX: due to an implementation issue, the rprompt has a 1 space gap before the
     edge of the logical screen. editline's logical screen is 1 space less
     than the full screen width, so there's a 2 space gap between the rprompt
     and the right end of the physical screen. i'm not concerned about this.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 21 00:55:55 1999 UTC (15 years ago) by lukem
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.13: +11 -5 lines
Diff to previous 1.13 (colored)

* in el_source():
	- don't reopen fp if it was successfully opened in a previous check
	- use strlcpy()/strlcat() instead of snprintf() to build a pathname,
	  since the former are more portable to other systems than the latter
* whitespace fascism

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 2 15:21:23 1999 UTC (15 years, 3 months ago) by simonb
Branch: MAIN
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (colored)

More trailing white space.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 12 20:08:22 1998 UTC (15 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

delint

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 28 11:00:05 1998 UTC (16 years ago) by christos
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

fix core-dump caused by maps not being initialized before tty is called.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 29 02:26:00 1998 UTC (16 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.9: +149 -2 lines
Diff to previous 1.9 (colored)

* add more checks for NULL pointers in passed arguments
* implement el_get(EditLine *, int op, void *result), which does the
  inverse of el_set()
* add EL_EDITMODE operation to el_set and el_get; if non zero editing
  is enabled (the default).
* add "edit  on | off" editrc command, which modifies EL_EDITMODE.
  users can now add '*:edit off' in ~/.editrc as an advisory to
  disable editing.

NOTE: at this time EL_EDITMODE is just an indication of the
state of the 'edit' command. It's up to the application to check
this after el_source() or el_parse() to determine if editing is still
required.

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 20 01:01:00 1998 UTC (16 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.8: +15 -18 lines
Diff to previous 1.8 (colored)

el_init takes a third stream argument and add el_beep.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 20 19:15:50 1997 UTC (16 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.7: +5 -4 lines
Diff to previous 1.7 (colored)

Small optimization. Don't call isatty() on every invocation of el_gets, but
remember if the tty setup failed... Also trim the input line of trailing \r's.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 6 18:25:24 1997 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Fix compiler warnings.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 24 18:54:16 1997 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)

Handle properly the case where the last line in the sourced file does
not have a trailing '\n'. From Jeffrey C Honig.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 11 17:52:44 1997 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Portability fixes:
__const		-> const
BADSIG		-> SIG_ERR
int flags	-> u_int flags
#if __STDC__	-> #ifdef __STDC__

Revision 1.4 / (download) - annotate - [select for diffs], Thu Mar 20 16:42:32 1997 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.3: +4 -5 lines
Diff to previous 1.3 (colored)

Fix potential stack overflow; from Keith Bostic.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 17 01:03:33 1997 UTC (17 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)

fix el_source() - a block needed braces around it (the indenting fooled me)

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 11 06:47:53 1997 UTC (17 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.1: +6 -0 lines
Diff to previous 1.1 (colored)

RCSid police
editline first appeared in 4.4BSD not NetBSD1.0

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri May 6 06:01:45 1994 UTC (20 years, 5 months ago) by cgd
Branch: CSRG
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0, lite-2, lite-1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

libedit!

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 6 06:01:44 1994 UTC (20 years, 5 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>