The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Jun 29 14:13:14 2024 UTC (5 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -2 lines
Prevent testing out of bounds memory. From Robert Morris
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279762

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Oct 30 19:11:31 2022 UTC (2 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +7 -4 lines
improvements in malloc/free handling.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Feb 8 21:13:22 2022 UTC (2 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +11 -11 lines
libedit: fix typos, apply KNF to newly imported code (PR/56693)

No binary change.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Feb 8 15:05:10 2022 UTC (2 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +36 -2 lines
PR/56693: Walter Lozano: Add support for rl_delete_text and rl_set_key

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Jan 11 18:30:15 2022 UTC (2 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +31 -2 lines
PR/56618: Walter Lozano: Improve libedit compatibility with readline by
implementing:

    rl_copy_text, rl_erase_empty_line, rl_message, rl_on_new_line,
    rl_replace_line, rl_restore_prompt, rl_save_prompt

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:12 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +7 -13 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Jul 23 10:18:52 2019 UTC (5 years, 4 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -12 lines
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.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Jul 23 09:47:16 2019 UTC (5 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
PR/54400: Sören Tempel: out-of-bounds read in libedit c_delbefore

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Oct 11 06:49:03 2017 UTC (7 years, 2 months ago) by abhinav
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat
Branch point for: phil-wifi
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3 lines
Fix typo in comment

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun May 22 19:44:26 2016 UTC (8 years, 6 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -26 lines
Stop the read module from poking the el_chared.c_macro data structure
currently belonging to the chared module.  The read module does so
from three of its functions, while no other module uses the macro
data, not even the chared module itself.  That's quite logical
because macros are a feature of input handling, all of which is
done by the read module, and none by the chared module.  So move
the data into the read modules's own opaque data structure, struct
el_read_t.

That simplifies internal interfaces in several respects: The
semi-public chared.h has one fewer struct, one fewer #define, and
one fewer member in struct el_chared_t; all three move to one single
C file, read.c, and are now module-local.  And the internal interface
function ch_reset() needs one fewer argument, making the code of many
functions in various modules more readable.

The price is one additional internal interface function, read_end(),
10 lines long including comments, called publicly from exactly one
place: el_end() in el.c.  That's hardly an increase in complexity
since most other modules already have their *_end() function, read.c
was the odd one out not having one.

From Ingo Schwarze

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon May 9 21:46:56 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +26 -26 lines
s/protected/libedit_private/g

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Apr 18 17:01:19 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -2 lines
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.53: download - view: text, markup, annotated - select for diffs
Mon Apr 11 18:56:31 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -7 lines
Get rid of private/public; keep protected (Ingo Schwarze)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Apr 11 00:50:13 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +25 -26 lines
Char -> wchar_t from Ingo Schwarze.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Apr 11 00:22:48 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -6 lines
more macro WIDECHAR undoing from Ingo Schwarze.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Apr 9 18:43:17 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -9 lines
More WIDECHAR elimination (Ingo Schwarze)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Feb 24 14:29:21 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -2 lines
A very simple, non-intrusive patch to fix a segfault (and a
functional error) in c_gets(), file chared.c.

Run any program using libedit in the default way.  At the el_[w]gets()
prompt, invoke ed-command (for example, in emacs mode, press the
escape key, then type the letter 'x').  You should see a ": " prompt.
Type the letter 'x' again.  Now press the backspace key a few times,
looking at the screen after each key press:

 - The 1st BS deletes the 'x'.
 - The 2nd BS deletes the blank after the prompt.
 - The 3rd BS deletes the colon of the prompt.
 - The 4th BS moves the cursor up one line.
 - The 5th BS gives me "Segmentation fault (core dumped)".

Depending on your platform, it might take a few more or a few less
backspaces for the buffer underrun to trigger the segfault, but
you should be able to hit it sooner or later no matter what.

Run the same program again, connect again and invoke ed-command again.
Now type: 'b', backspace, 'i', backspace, 'n', backspace, 'd', enter.
The "bind" command gets executed, even though you deleted what you
typed before hitting enter.

From Ingo Schwatze.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Feb 24 14:25:38 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -8 lines
Get split el_getc and el_wgetc completely and call el_wgetc internally.
Change some character constants to they wide versions. (Ingo Schwarze)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Feb 17 19:47:49 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4 lines
whitespace and header sorting changes (Ingo Schwarze). No functional changes.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Feb 16 22:53:14 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -2 lines
More header cleanups from Ingo Schwarze.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Feb 16 19:08:41 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -2 lines
more include file cleanup (Ingo Schwarze)

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Feb 16 15:53:48 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -5 lines
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.43: download - view: text, markup, annotated - select for diffs
Tue Feb 16 14:08:25 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
cleanup chartype.h includes (Ingo Schwarze)

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Feb 16 14:06:05 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2 lines
cleanup inclusion of histedit.h (Ingo Schwarze)

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Feb 14 14:49:34 2016 UTC (8 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +10 -10 lines
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.

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:17 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +31 -2 lines
Rebase to HEAD as of a few days ago.

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:51:57 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +12 -2 lines
Rebase.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Jun 18 18:12:28 2014 UTC (10 years, 5 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, 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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +12 -2 lines
Don't depend on weak aliases to define the vi "alias" expansion function,
provide an API instead to set it.

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:36:55 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.1: +21 -2 lines
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.39: download - view: text, markup, annotated - select for diffs
Fri Jul 12 22:39:50 2013 UTC (11 years, 5 months ago) by christos
Branches: 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
Branch point for: tls-earlyentropy
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
cast to avoid warning.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Jul 12 17:48:29 2013 UTC (11 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +21 -2 lines
Add a function to move the cursor.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 18:59:09 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
sync with head

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jul 18 17:12:39 2012 UTC (12 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
From Kamil Dudka: fix crash of el_insertstr() on incomplete multi-byte

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Oct 23 17:37:55 2011 UTC (13 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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
Branch point for: yamt-pagecache
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Fixed misplaced parenthesis (Nirbhay Choubey)

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Aug 16 16:25:15 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -8 lines
re-enable -Wconversion

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jul 29 23:44:44 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
pass -Wconversion

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Jul 29 15:20:39 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -59 lines
kill ifdef notdef

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jul 29 15:16:33 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +25 -25 lines
KNF return (\1); -> return \1;

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jul 28 20:50:55 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +10 -9 lines
kill ptr_t and ioctl_t, add  * sizeof(*foo) to all allocations.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jul 28 01:05:20 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
term -> terminal
XXX: need to rename key_ too.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 28 15:44:59 2010 UTC (14 years, 3 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +14 -2 lines
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.28: download - view: text, markup, annotated - select for diffs
Wed Dec 30 22:37:40 2009 UTC (14 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +82 -72 lines
Wide character support (UTF-8) from Johny Mattsson; currently disabled.

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:18:29 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +16 -19 lines
Sync with HEAD.

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

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Feb 15 21:55:23 2009 UTC (15 years, 9 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +16 -19 lines
pass lint on _LP64.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Feb 6 12:45:25 2009 UTC (15 years, 10 months ago) by sketch
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
de-__P()

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Aug 8 01:41:30 2005 UTC (19 years, 4 months ago) by christos
Branches: 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, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, 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, 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, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -2 lines
The previous commit removed too much and forgot to reset the history event
number. From Kouichirou Hiratsuka, many thanks!

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Aug 1 23:00:15 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +22 -11 lines
Don't reset the macro strings each time we enter el_gets(), otherwise
el_push() is unusable programmatically.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jun 1 11:37:52 2005 UTC (19 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Don't use non-standard uint or u_int.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Aug 13 12:10:38 2004 UTC (20 years, 4 months ago) by mycroft
Branches: 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
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +32 -2 lines
Delete-previous-char and delete-next-char without an argument are not supposed
to modify the yank buffer in Emacs.  Make it so.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Nov 2 20:08:41 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
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-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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Always use el->el_buffer, because newbuffer could have moved. From
Gerry Swislow gerry at certif dot com

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Oct 18 23:48:42 2003 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
change allocation policy in el_push to allocate the string itself.
fix issues with strdup.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:44:30 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Nov 20 16:50:08 2002 UTC (22 years ago) by christos
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +40 -27 lines
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.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Nov 15 14:32:32 2002 UTC (22 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +79 -36 lines
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.16: download - view: text, markup, annotated - select for diffs
Sun Oct 27 21:41:50 2002 UTC (22 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +71 -84 lines
vi mode and memory fixes from david laight.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Mar 18 16:00:50 2002 UTC (22 years, 9 months ago) by christos
Branches: 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -5 lines
- 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.14: download - view: text, markup, annotated - select for diffs
Thu May 17 01:02:17 2001 UTC (23 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
PR/12963:Jason Waterman: Fix signed cast problems.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Apr 13 01:04:19 2001 UTC (23 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +63 -62 lines
knf ch_enlargebufs(), to be *consistent* with the rest of this file...

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jan 10 07:45:41 2001 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +85 -4 lines
Enlarge editline buffers as needed to support arbitrary length lines.
This also addresses lib/9712 by Phil Nelson.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jan 4 15:56:31 2001 UTC (23 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +14 -5 lines
consistently check for allocation failures and return -1, if we could not
get more memory.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Nov 11 22:18:57 2000 UTC (24 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
- add support for home and end keys.
- improve debugging support

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Sep 4 22:06:28 2000 UTC (24 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +366 -407 lines
convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Feb 28 17:41:04 2000 UTC (24 years, 9 months ago) by chopps
Branches: MAIN
CVS tags: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
el_insertstr takes a "const char *" not "char *" now as it doesn't modify
the argument.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jul 2 15:21:23 1999 UTC (25 years, 5 months ago) by simonb
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +36 -36 lines
More trailing white space.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Feb 5 20:53:49 1999 UTC (25 years, 10 months ago) by christos
Branches: 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
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
delint.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 12 20:08:21 1998 UTC (26 years ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3 lines
delint

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Feb 3 19:12:37 1998 UTC (26 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -13 lines
remove obsolete register declarations

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jul 6 18:25:22 1997 UTC (27 years, 5 months ago) by christos
Branches: 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
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Fix compiler warnings.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Jan 11 06:47:48 1997 UTC (27 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -0 lines
RCSid police
editline first appeared in 4.4BSD not NetBSD1.0

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri May 6 06:01:45 1994 UTC (30 years, 7 months ago) by cgd
Branches: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
libedit!

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 6 06:01:44 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>