The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.41 / (download) - annotate - [select for diffs], Tue May 24 15:00:45 2016 UTC (6 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, localcount-20160914, HEAD
Changes since 1.40: +1 -2 lines
Diff to previous 1.40 (colored)

From Ingo Schwarze:

Reduce obfuscation of errno handling. There is only one purpose
non-local errno handling is needed for:  Inside el_wgets(), several
functions call down indirectly to el_wgetc(), many of them via the
dispatch table.  When el_wgetc() fails, it does properly report
failure, but then various cleanup is done which may clobber errno.
But when returning due to failure, el_wgets() wants to have errno
set to the reason of the original read failure, not to the reason
of some subsequent failure of some cleanup operation.  So el_wgetc()
needs to save errno, and if it's non-zero, el_wgets() needs to
restore it on failure.

This core logic is currently obscured by the fact that el_errno
is set and inspected at some additional places where it isn't needed.
Besides, since el_wgetc() and and el_wgets() are both in read.c,
el_errno does not need to be in struct editline, it can and should
be local to read.c in struct el_read_t.

Let's look at what can be simplified.

 1. keymacro_get() abuses el_errno instead of having a proper
    error return code.  Adding that error return code is easy
    because node_trav() already detects the condition and an
    adequate code is already defined.  Returning it, testing
    for it in read_getcmd(), and returning with error from there
    removes the need to inspect el_errno from el_wgets() after
    calling read_getcmd().
    Note that resetting lastchar and cursor and clearing buffer[0]
    is irrelevant.  The code returns from el_wgets() right afterwards.
    Outside el_wgets(), these variables are no longer relevant.
    When el_wgets() is called the next time, it will call ch_reset()
    anyway, resetting the two pointers.  And as long as lastchar
    points to the beginning of the buffer, the contents of the
    buffer won't be used for anything.

 2. read_getcmd() doesn't need to set el_errno again after el_wgetc()
    failure since el_wgetc() already did so.  While here, remove
    the silly "if EOF or error" comments from the el_wgetc()
    return value tests.  It's a public interface documented in a
    manual, so people working on the implementation can obviously
    be expected to know how it works.  It's a case of

      count++;  /* Increment count. */

 3. In the two code paths of el_wgets() that lead up to "goto noedit",
    there is no need to save the errno because nothing that might
    change it happens before returning.

For clarity, since el_wgets() is the function restoring the errno,
also move initializing it to the same function.

Finally, note that restoring errno when the saved value is zero is
wrong.  No library code is ever allowed to clear a previously set
value of errno.  Only application programs are allowed to do that,
and even they usually don't need to do so, except when using certain
ill-designed interfaces like strtol(3).

I tested that the behaviour remains sane in the following cases,
all during execution of el_wgets(3) and with a signal handler
for USR1 installed without SA_RESTART.

 * Enter some text and maybe move around a bit.
   Then send a USR1 signal.
   The signal gets processed, then read_char() resumes reading.
   Send another USR1 signal.
   Now el_wgets() sets errno=EINTR and returns -1.

 * Press Ctrl-V to activate ed-quoted-insert.
   Then send a USR1 signal.
   The signal gets processed, then read_char() resumes reading.
   Send another USR1 signal.
   ed_quoted_insert() returns ed_end_of_file(), i.e. CC_EOF,
   and el_wgets() returns 0.

 * Press a key starting a keyboard macro.
   Then send a USR1 signal.
   The signal gets processed, then read_char() resumes reading.
   Send another USR1 signal.
   Now el_wgets() sets errno=EINTR and returns -1.

 * Press : to enter builtin command mode.
   Start typing a command.
   Then send a USR1 signal.
   The signal gets processed, then read_char() resumes reading.
   Send another USR1 signal.
   Now c_gets() returns -1, ed_command() beeps and returns CC_REFRESH,
   and el_wgets() resumes operation as it should.

I also tested with "el_set(el, EL_EDITMODE, 0)", and it returns
the right value and sets errno correctly.

Revision 1.40 / (download) - annotate - [select for diffs], Mon May 9 21:46:56 2016 UTC (7 months ago) by christos
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

s/protected/libedit_private/g

Revision 1.39 / (download) - annotate - [select for diffs], Mon May 2 16:48:34 2016 UTC (7 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

eliminate static buffer with custom resizing code.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Apr 19 19:50:53 2016 UTC (7 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

From Ingo Schwarze:
 - Put the data type el_rfunc_t into the public header <histedit.h>.
 - Make el_read in struct editline an opaque pointer rather
   than an embedded struct.
 - Do not include "read.h" everywhere, but only in the two files
   needing access to el_read, read.c and el.c.
 - To functions that don't need more, pass the struct el_read_t *
   rather than the full EditLine *.
 - Of course, that means that read_init() can now fail from
   memory exhaustion, but it's easy to clean up after that.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 18 17:01:19 2016 UTC (7 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored)

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.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Apr 11 00:50:13 2016 UTC (8 months ago) by christos
Branch: MAIN
Changes since 1.35: +10 -10 lines
Diff to previous 1.35 (colored)

Char -> wchar_t from Ingo Schwarze.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 23 22:27:48 2016 UTC (8 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored)

Start removing the WIDECHAR ifdefs; building without it has stopped working
anyway. (Ingo Schwarze)

Revision 1.34 / (download) - annotate - [select for diffs], Wed Feb 24 17:13:22 2016 UTC (9 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.33: +1 -2 lines
Diff to previous 1.33 (colored)

Make the read_char function always take a wchar_t * argument (Ingo Schwarze)

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 17 19:47:49 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

whitespace and header sorting changes (Ingo Schwarze). No functional changes.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 16 22:53:14 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.31: +1 -3 lines
Diff to previous 1.31 (colored)

More header cleanups from Ingo Schwarze.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Feb 16 19:11:25 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.30: +1 -3 lines
Diff to previous 1.30 (colored)

get rid of bool_t (Ingo Schwarze)

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 16 19:08:41 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.29: +2 -4 lines
Diff to previous 1.29 (colored)

more include file cleanup (Ingo Schwarze)

Revision 1.29 / (download) - annotate - [select for diffs], Tue Feb 16 15:53:48 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

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

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 16 14:08:25 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (colored)

cleanup chartype.h includes (Ingo Schwarze)

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 16 14:06:05 2016 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

cleanup inclusion of histedit.h (Ingo Schwarze)

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 12 15:36:08 2016 UTC (9 months, 4 weeks ago) by christos
Branch: MAIN
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (colored)

GC IGNORE_EXTCHARS and simplify code (Ingo Schwarze)

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 29 23:44:44 2011 UTC (5 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, 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, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, 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, agc-symver-base, agc-symver
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

pass -Wconversion

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 28 01:56:27 2011 UTC (5 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Thu Jul 28 01:05:20 2011 UTC (5 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

term -> terminal
XXX: need to rename key_ too.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:00 2011 UTC (5 years, 10 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 27 23:11:40 2011 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 31 15:58:26 2009 UTC (6 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 30 23:54:52 2009 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 30 22:37:40 2009 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.18: +19 -11 lines
Diff to previous 1.18 (colored)

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

Revision 1.17.20.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:29 2009 UTC (7 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD.

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

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 15 21:24:13 2009 UTC (7 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

don't restart on EINTR, instead return NULL immediately. From Anon Ymous

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 15 22:13:33 2006 UTC (9 years, 11 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-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, 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-5-RELEASE, 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, mjf-devfs2-base, mjf-devfs2, 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, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: jym-xensuspend
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

add EL_GETFP, and EL_SETFP.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Oct 18 23:48:42 2003 UTC (13 years, 1 month ago) by christos
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, 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, 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-base, 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-0, netbsd-2, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 26 17:44:51 2003 UTC (13 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:31 2003 UTC (13 years, 4 months ago) by agc
Branch: MAIN
Changes since 1.13: +2 -6 lines
Diff to previous 1.13 (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.13 / (download) - annotate - [select for diffs], Fri Nov 15 14:32:33 2002 UTC (14 years ago) by christos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

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.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Oct 27 21:41:50 2002 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.11: +7 -3 lines
Diff to previous 1.11 (colored)

vi mode and memory fixes from david laight.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 18 16:00:52 2002 UTC (14 years, 8 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.10: +2 -2 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Tue Oct 9 13:50:30 2001 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 27 19:29:50 2001 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Sat Jan 6 14:44:50 2001 UTC (15 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

el_line_t: make 'limit' const

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 11 22:18:57 2000 UTC (16 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.6: +7 -1 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 4 22:06:29 2000 UTC (16 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.5: +45 -45 lines
Diff to previous 1.5 (colored)

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

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:29:57 1999 UTC (16 years, 11 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up to last week's -current.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Nov 12 01:05:07 1999 UTC (17 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, 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, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Wed Jul 29 02:26:00 1998 UTC (18 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.3: +6 -3 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sat Dec 20 19:15:51 1997 UTC (18 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Sat Jan 11 06:47:53 1997 UTC (19 years, 11 months ago) by lukem
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.1: +2 -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 (22 years, 7 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 (22 years, 7 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>