CVS log for src/lib/libedit/readline.c
Up to [cvs.NetBSD.org] / src / lib / libedit
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.182: download - view: text, markup, annotated - select for diffs
Tue Mar 26 18:02:04 2024 UTC (8 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -3
lines
fix insert key (Xose Vazquez Perez)
Revision 1.181: download - view: text, markup, annotated - select for diffs
Tue Apr 25 17:51:32 2023 UTC (19 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +5 -3
lines
pass lint.
Revision 1.180: download - view: text, markup, annotated - select for diffs
Mon Apr 24 20:02:53 2023 UTC (19 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +4 -4
lines
PR/57376: Jorge Giner: readline file completion does not quote; do the same.
Revision 1.179: download - view: text, markup, annotated - select for diffs
Fri Apr 21 14:56:13 2023 UTC (19 months, 3 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +7 -7
lines
Align types with readline-8.2 (wiz@)
Revision 1.178: download - view: text, markup, annotated - select for diffs
Fri Dec 2 19:23:15 2022 UTC (2 years 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.177: preferred, colored
Changes since revision 1.177: +3 -3
lines
PR/57095: Yilei Yang: Change readline's replace_history_entry to not make a copy
of the string to replace since H_REPLACE already makes a copy (fixes memory leak)
Revision 1.177: 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
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +5 -3
lines
improvements in malloc/free handling.
Revision 1.176: download - view: text, markup, annotated - select for diffs
Wed Sep 21 01:33:53 2022 UTC (2 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +4 -2
lines
PR/57016: Ricky Zhou: declare lastidx
Revision 1.175: download - view: text, markup, annotated - select for diffs
Tue Sep 20 23:41:14 2022 UTC (2 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +5 -3
lines
PR/57016: Ricky Zhou: Revert to trimming the last newline instead of the
first one so that multi-line commands work again.
Revision 1.174: download - view: text, markup, annotated - select for diffs
Fri Apr 8 20:11:31 2022 UTC (2 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +8 -3
lines
PR/56778: Detlev Casanova: Missing rl_initialize call in rl_copy_text
Revision 1.173: download - view: text, markup, annotated - select for diffs
Sat Feb 19 17:45:02 2022 UTC (2 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +7 -7
lines
PR/56695: Walter Lozano: Correct declaration of hook functions.
Revision 1.172: 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.171: preferred, colored
Changes since revision 1.171: +20 -2
lines
PR/56693: Walter Lozano: Add support for rl_delete_text and rl_set_key
Revision 1.171: download - view: text, markup, annotated - select for diffs
Mon Jan 31 14:44:49 2022 UTC (2 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +6 -3
lines
PR/56622: Walter Lozano: Improve readline compatibility by adding
rl_readline_state support.
Revision 1.170: download - view: text, markup, annotated - select for diffs
Sat Jan 29 20:52:45 2022 UTC (2 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +5 -3
lines
Add more refreshes from Walter Lozano. The readline example in
http://www.mcld.co.uk/blog/2009/simple-gnu-readline-callback-style-example.html
still does not work, but it is better.
Revision 1.169: 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.168: preferred, colored
Changes since revision 1.168: +70 -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.168: download - view: text, markup, annotated - select for diffs
Fri Sep 10 18:51:36 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +8 -7
lines
libedit: fix indentation
No change to the resulting object files.
Revision 1.167: download - view: text, markup, annotated - select for diffs
Fri Sep 10 13:29:06 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -5
lines
rl_startup_hook should be called each time. From Carlos Henrique Lima Melara
Revision 1.166: download - view: text, markup, annotated - select for diffs
Thu Sep 9 20:25:30 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +23 -18
lines
fix memory issues found by fuzzing (double frees and buffer overflows)
Revision 1.165: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:20:38 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +150 -118
lines
Try to refactor this in order to correct some of the memory issues
reported by Christian Holler.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Sat Aug 21 12:38:56 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +4 -5
lines
PR/56370: mirabilos: libedit change from 2017 kills history in gdb
Revision 1.163: download - view: text, markup, annotated - select for diffs
Sat Aug 21 12:34:59 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +49 -2
lines
Add more api to make gdb-11 happy (but not gdbtui as usual)
Revision 1.162: download - view: text, markup, annotated - select for diffs
Sun Aug 15 22:22:52 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +6 -9
lines
libedit: simplify calls to macro ADD_STRING
The lint comments CONSTCOND and LINTED were not necessary. It is
simpler to just specify what to free. GCC optimizes free(NULL) to be a
no-op.
No functional change.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Sun Aug 15 22:14:45 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +4 -5
lines
readline: fix lint warning about effective unconst cast
Calling strchr to avoid the syntactical unconst cast is not necessary
here. A simple pointer assignment is enough.
No functional change.
Revision 1.160: download - view: text, markup, annotated - select for diffs
Sun Aug 15 10:06:32 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +5 -3
lines
Add a LINTED comment... Why doesn't NOTREACHED work?
Revision 1.147.2.2: 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.147.2.1: preferred, colored; branchpoint 1.147: preferred, colored; next MAIN 1.148: preferred, colored
Changes since revision 1.147.2.1: +18 -20
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.159: download - view: text, markup, annotated - select for diffs
Wed Oct 9 14:31:07 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
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.158: preferred, colored
Changes since revision 1.158: +6 -6
lines
add +1 to strlcpy's (Patrick Welche)
Revision 1.158: download - view: text, markup, annotated - select for diffs
Tue Oct 8 19:17:57 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +7 -11
lines
Change strncpy to either memcpy (when we know the len), or strlcpy (when
we used to NUL terminate explicitly.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Wed Aug 21 11:11:48 2019 UTC (5 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +5 -3
lines
Increment offset when adding an element to history to keep it aligned with
the last element entered (Sandy Li Changqing)
Revision 1.156: 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: 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
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +10 -10
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.147.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:23 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +41 -15
lines
Sync with HEAD
Revision 1.155: download - view: text, markup, annotated - select for diffs
Fri Jun 7 15:21:48 2019 UTC (5 years, 6 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +3 -2
lines
PR/54281: Jonathan Perkins: NUL terminate rl_line_buffer on modification
to avoid completion leak.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Fri Jun 7 15:19:29 2019 UTC (5 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +3 -3
lines
PR/54280: rl_completer_quote_characters should be const for readline compat
Revision 1.153: download - view: text, markup, annotated - select for diffs
Fri Jun 7 15:18:20 2019 UTC (5 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +10 -4
lines
PR/54279: Jonathan Perkins: Ignore adjacent start/end prompt ignore.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Fri Apr 26 16:56:57 2019 UTC (5 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -4
lines
Follow the man page for EL_GETTC and not require a NULL terminated argument
list: https://reviews.llvm.org/D61191
Revision 1.151: download - view: text, markup, annotated - select for diffs
Fri Feb 15 23:20:35 2019 UTC (5 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +10 -8
lines
PR/53983: Jonathan Perkins: Fix types for readline compatibility
Revision 1.150: download - view: text, markup, annotated - select for diffs
Thu Feb 14 20:09:12 2019 UTC (5 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +4 -3
lines
PR/53981: Jonathan Perkins: history_list should null-terminate
Revision 1.146.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:10 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.146.2.2: preferred, colored; branchpoint 1.146: preferred, colored; next MAIN 1.147: preferred, colored
Changes since revision 1.146.2.2: +3 -3
lines
Synch with HEAD
Revision 1.149: download - view: text, markup, annotated - select for diffs
Thu Jan 10 18:41:56 2019 UTC (5 years, 11 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +3 -3
lines
PR/53856: F. Aragon: editline/libedit not prompting colors in readline mode
Revision 1.146.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:27 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.146.2.1: preferred, colored; branchpoint 1.146: preferred, colored
Changes since revision 1.146.2.1: +18 -2
lines
Sync with HEAD, resolve a few conflicts
Revision 1.148: download - view: text, markup, annotated - select for diffs
Sun Dec 2 16:58:13 2018 UTC (6 years ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-1226
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +18 -2
lines
Add a couple more readline compat functions.
Revision 1.146.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:35 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +7 -10
lines
Sync with HEAD
Revision 1.147: download - view: text, markup, annotated - select for diffs
Sat Jun 9 17:41:55 2018 UTC (6 years, 6 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +7 -10
lines
Provide more compatibility with readline headers; now python-3.6.5 works
when changing 'readline' -> 'edit' in setup.py.
Revert previous conditional setting of unbuffered.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Mon Jan 1 22:32:46 2018 UTC (6 years, 11 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +4 -4
lines
Only FLUSH if we are ending libedit; DRAIN if we suspend for readline.
This allows pasting multiline buffers (Gerry Swislow)
Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Dec 8 16:56:23 2017 UTC (7 years ago) by christos
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +6 -3
lines
For applications that don't issue their own prompt (like python)
don't set unbuffered unless they've already printed the prompt.
This avoids printing the prompt before the application has a chance
to process the input line.
From sjg@
Revision 1.144: download - view: text, markup, annotated - select for diffs
Sun Sep 17 08:10:08 2017 UTC (7 years, 2 months ago) by kre
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +10 -4
lines
PR lib/52547 - read_history (readline.c) should now sets history_length.
Patch from Yen Chi Hsuan in the PR, extracted from Apple's version of
readline.c, then modified by me to be consistent about what the return
value really is.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue Sep 5 18:07:59 2017 UTC (7 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +13 -5
lines
For readline emulation, don't reset the tty to "sane" (cooked) mode if we
did not start this way. Also set and reset the tty on entry and exit from
readline() since this is what readline does.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Fri Sep 1 10:19:10 2017 UTC (7 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +38 -6
lines
PR/51517: Jay West: Tty settings not restored on exit
PR/51518: Jay West: prompt is interleaved with client output
Both these issues are caused by rl_restore_handler not DTRT; fix
it so that it kills the internal libedit state completely. This is
inefficient, but it works.
Also fix:
1. add append_history()/H_NSAVE_FP
2. call the rl_startup_hook before printing the first prompt as documented.
callint it from rl_initialize breaks python, because the callback ends
up being invoked before the readline module is installed, and we end up
dereferencing a NULL pointer.
3. add el_resize_terminal.
With those changes, s/lreadline/ledit/g in python works.
Revision 1.136.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:52:55 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.136.2.2: preferred, colored; branchpoint 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136.2.2: +15 -14
lines
Sync with HEAD
Revision 1.140.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:10 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140: +15 -14
lines
Sync with HEAD
Revision 1.141: download - view: text, markup, annotated - select for diffs
Fri Apr 21 05:38:03 2017 UTC (7 years, 7 months ago) by abhinav
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
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,
bouyer-socketcan-base1
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +15 -14
lines
When doing filename autocompletion, append a trailing slash at the end of directory
names. We already do this when there is only one completion option but
in case of of multiple completion options, it wasn't being done.
ok christos@
Revision 1.136.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:56:59 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.136.2.1: preferred, colored; branchpoint 1.136: preferred, colored
Changes since revision 1.136.2.1: +3 -3
lines
Sync with HEAD
Revision 1.140: download - view: text, markup, annotated - select for diffs
Mon Jan 9 03:09:05 2017 UTC (7 years, 11 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20170320,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -3
lines
Make sure we take into account history_base when computing negative history
offsets. (Gerry Swinslow)
Revision 1.136.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:48:53 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3
lines
Sync with HEAD
Revision 1.139: download - view: text, markup, annotated - select for diffs
Fri Oct 28 18:32:26 2016 UTC (8 years, 1 month ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
pgoyette-localcount-20161104
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -3
lines
pass the stream to the getc function
Revision 1.138: download - view: text, markup, annotated - select for diffs
Thu Sep 1 13:23:44 2016 UTC (8 years, 3 months ago) by mbalmer
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -3
lines
fix typo
Revision 1.137: download - view: text, markup, annotated - select for diffs
Wed Aug 24 13:10:59 2016 UTC (8 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +67 -78
lines
more compatible with readline history functions.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Thu Jun 2 21:40:51 2016 UTC (8 years, 6 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +4 -2
lines
Fix previous to better match readline behavior (Ingo Schwarze)
Revision 1.135: download - view: text, markup, annotated - select for diffs
Thu Jun 2 15:11:18 2016 UTC (8 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +11 -14
lines
From Ingo Schwarze:
In libedit, the only way how H_ENTER can fail is memory exhaustion,
too, and of course it is handled gracefully, returning -1 from
history(). So of course, we will continue to handle it gracefully
in add_history() as well, but we are free to decide what to do with
the library state in this case because GNU just dies...
I think the most reasonable course of action is to simply not change
the library state in any way when add_history() fails due to memory
exhaustion, but just return.
If H_ENTER does not fail, we know that the history now contains at
least one entry, so there is no need any longer to check the H_GETSIZE
return value. And we can of course always set current_history_valid.
While testing these changes, i noticed three problems so closely
related that i'd like to fix them in the same diff.
1. libedit has the wrong prototype for add_history().
GNU readline-6.3 defines it as void add_history(const char *).
Of course, that is very stupid - no way to report problems to
the caller! But the whole point of a compatibility mode is
being compatible, so we should ultimately change this.
Of course, changing the prototype of a public symbol requires
a libedit major bump. I don't want to do that casually.
Rather, i will take a note and change the prototype the next
time we need a libedit major bump for more important reasons.
For now, let's just always return 0.
2. While *implicitely* pushing an old entry off the history
increments history_base in GNU readline, testing reveals that
*explicitly* deleting one does not. Again, this is not
documented, but it applies to both remove_history() and
stifle_history(). So delete history_base manipulation
from stifle_history(), which also allows to simplify the
code and delete two automatic variables.
3. GNU readline add_history(NULL) crashes with a segfault.
There is nothing wrong with having a public interface
behave that way. Many standard interfaces do, including
strlen(3). Such crashes can even be useful to catch
buggy application programs.
In libedit/readline.c rev. 1.104, Christos made add_history()
silently ignore this coding error, according to the commit
message to hide a bug in nslookup(1). That change was never
merged to OpenBSD. I strongly disagree with this change.
If nslookup(1) is still broken, that program needs to be
fixed instead. In any case, delete the bogus check; hiding
bugs is dangerous.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Tue May 31 19:25:17 2016 UTC (8 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -3
lines
remove the right history entry (Ingo Schwarze)
Revision 1.133: download - view: text, markup, annotated - select for diffs
Fri May 13 15:55:59 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +8 -5
lines
From Bastian Maerkisch, via Igno Schwarze:
Even though section "2.3.3 Information About the History List"
of the history(3) info(1) manual only says
-- Function: int where_history (void)
Returns the offset of the current history element.
which maybe isn't completely clear, a plausible implementation
is that the offset returned is the same offset that can be used
for history_set_pos(), i.e. that it is 0 for the oldest entry
and increases with time, and that's how the GNU implementation
behaves indeed.
The libedit implementation, on the other hand, returns 1 for the
newest entry and increases going back in time.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Mon May 9 21:27:55 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +27 -5
lines
GNU readline(3) regards history chronologically, that is, from the
perspective of the dawn of time, so "next" means "newer" and "previous"
means "older". Libedit, by contrast, uses reverse chronology and
regards history from the perspective of the present, such that "next"
means "longer ago" and "previous" means "not so long ago".
The following patch fixes previous_history() and next_history()
as proposed by Bastian Maerkisch.
But there is a related problem demonstrated by Bastian's regression
tests that his patch did not fix: next_history() can advance not
only to the newest entry, but beyond it, which core libedit cannot
do. So that feature must be implemented locally in readline.c.
With that, the last of Bastians tests is fixed, test_movement_direction().
This patch also improves libedit documentation to more clearly state
what "previous" and "next" mean. GNU readline documentation is
just as unclear, but we can't easily fix that since libedit doesn't
include its own readline.3 manual.
(Ingo Schwarze)
Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon May 9 21:25:11 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +21 -9
lines
The libedit implementation of history_get() also differs from the GNU
implementation: libedit goes to the entry with the given number
stored in the HistEvent structure, while GNU subtracts history_base,
then advances that many entries from the oldest one. If entries were
removed in between, GNU advances further than libedit.
The call sequence H_CURR, H_DELDATA, H_CURR, H_NEXT_EVDATA looks
weird, as if part of that must somehow be redundant. But actually,
the user interface is so counter-intuitive that every single step
is really required.
- The first H_CURR is needed to be able to go back after an error.
- The H_DELDATA is needed to move the cursor. Even though it takes
a pointer to ev, that structure is not filled in when the call
succeeds. H_DELDATA only moves the cursor, it doesn't tell us
the new event number.
- Consequently, the second H_CURR is required to get ev.num filled
in. But it doesn't return the data because ev has no field for
that.
- So even though the cursor is already positioned correctly,
H_NEXT_EVDATA is needed as the final step merely to get the data.
(Ingo Schwarze)
Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun May 8 20:15:00 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +15 -3
lines
In stiffle_history(), trim excessive entries from the history and advance
history_base like the GNU implementation does. (from Bastian Maerkisch)
Revision 1.129: download - view: text, markup, annotated - select for diffs
Fri May 6 21:01:19 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +6 -6
lines
fix logic (Ingo Schwarze)
Revision 1.128: 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.127: preferred, colored
Changes since revision 1.127: +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.127: download - view: text, markup, annotated - select for diffs
Wed Mar 23 22:27:48 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +2 -4
lines
Start removing the WIDECHAR ifdefs; building without it has stopped working
anyway. (Ingo Schwarze)
Revision 1.126: download - view: text, markup, annotated - select for diffs
Wed Feb 24 17:13:22 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +14 -11
lines
Make the read_char function always take a wchar_t * argument (Ingo Schwarze)
Revision 1.125: 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.124: preferred, colored
Changes since revision 1.124: +16 -16
lines
whitespace and header sorting changes (Ingo Schwarze). No functional changes.
Revision 1.124: 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.123: preferred, colored
Changes since revision 1.123: +2 -3
lines
more include file cleanup (Ingo Schwarze)
Revision 1.123: 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.122: preferred, colored
Changes since revision 1.122: +2 -4
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.122: 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.121: preferred, colored
Changes since revision 1.121: +3 -2
lines
cleanup chartype.h includes (Ingo Schwarze)
Revision 1.121: 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.120: preferred, colored
Changes since revision 1.120: +3 -3
lines
cleanup inclusion of histedit.h (Ingo Schwarze)
Revision 1.120: download - view: text, markup, annotated - select for diffs
Mon Feb 15 23:36:30 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -3
lines
attribute unused
Revision 1.119: download - view: text, markup, annotated - select for diffs
Mon Feb 15 22:48:59 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -3
lines
OpenBSD readline.c rev. 1.14 2015/02/06 23:21:58 millert
use SIZE_MAX
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Feb 15 21:58:37 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +9 -2
lines
OpenBSD readline.c rev. 1.13 2015/01/13 08:33:12 reyk
rl_set_keyboard_input_timeout() for readline 4.2 compat
Revision 1.117: download - view: text, markup, annotated - select for diffs
Tue Jun 2 15:35:31 2015 UTC (9 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +7 -7
lines
Adjust API to a more modern readline (Ryo Onodera)
Revision 1.116: download - view: text, markup, annotated - select for diffs
Tue May 26 19:59:21 2015 UTC (9 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +8 -6
lines
- fix types of rl_completion_entry_function and rl_add_defun
- call update pos before completion to refresh the screen
From Thomas Eriksson
Revision 1.111.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 13:33:55 2015 UTC (9 years, 7 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
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
Diff to: previous 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111: +38 -6
lines
Sync lib/libedit with head, requested by christos in #753:
lib/libedit/Makefile 1.53
lib/libedit/chartype.h 1.13
lib/libedit/editline.3 1.83-1.84
lib/libedit/editrc.5 1.28-1.29
lib/libedit/eln.c 1.18
lib/libedit/filecomplete.c 1.33-1.34
lib/libedit/readline.c 1.112-1.115
Man page improvements, fix overlapping strcpy, improve readline
compatibility, clang build fix.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Wed Apr 1 15:23:15 2015 UTC (9 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +4 -3
lines
Fix overlapping strcpy (Gerry Swislow)
Revision 1.114: download - view: text, markup, annotated - select for diffs
Tue Mar 24 21:29:52 2015 UTC (9 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +33 -2
lines
set some readline compatibility default key settings.
https://bugzilla.redhat.com/attachment.cgi?id=1001895
Revision 1.113: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:23 2014 UTC (10 years, 1 month ago) by snj
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +4 -4
lines
src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
Revision 1.105.2.4: 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.105.2.3: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.2.3: +14 -4
lines
Rebase to HEAD as of a few days ago.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Aug 15 13:32:53 2014 UTC (10 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3
lines
Fix typo in comment (Tobias Stoeckmann)
Revision 1.110.2.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.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +3 -3
lines
Rebase.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sun Jul 6 18:09:04 2014 UTC (10 years, 5 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3
lines
PR/48957: Federico G. Schwindt: Restore commented out code that broke
rl_callback_handler.
Revision 1.99.2.5: 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.99.2.4: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.2.4: +23 -6
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.110: download - view: text, markup, annotated - select for diffs
Tue Jan 21 13:51:44 2014 UTC (10 years, 10 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
Branch point for: tls-earlyentropy
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +5 -2
lines
... if called prior to using_history(). This needed to be worked around
in PHP: http://git.php.net/?p=php-src.git;a=commitdiff;h=31d67bd3
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1055409
Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Aug 28 08:05:21 2013 UTC (11 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +12 -5
lines
get rid of PATH_MAX.
Revision 1.105.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:21:06 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.105.2.2: preferred, colored
Changes since revision 1.105.2.2: +10 -3
lines
resync from head
Revision 1.108: download - view: text, markup, annotated - select for diffs
Tue May 28 00:10:34 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +10 -3
lines
expose rl_catch_signals and explain what we are doing.
Revision 1.105.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:27:56 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.105.2.1: preferred, colored
Changes since revision 1.105.2.1: +4 -4
lines
resync with head
Revision 1.99.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:05:24 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.99.2.3: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.3: +4 -4
lines
sync with head
Revision 1.107: download - view: text, markup, annotated - select for diffs
Sun Jan 13 15:46:57 2013 UTC (11 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8,
agc-symver-base,
agc-symver
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -4
lines
explicitly pass (void *)0 instead of NULL.
Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:00:43 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +8 -8
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.99.2.3: 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
Diff to: previous 1.99.2.2: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.2: +16 -8
lines
sync with head
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Oct 12 23:35:02 2012 UTC (12 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base7,
yamt-pagecache-base6
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +8 -8
lines
Add trailing NULL's to the varargs functions as required. (John Spencer)
Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Jul 12 18:46:20 2012 UTC (12 years, 5 months ago) by christos
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +7 -2
lines
PR/46678: Ian Wienand: Add stub implementation for rl_free_line_state()
Revision 1.100.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 5 20:22:14 2012 UTC (12 years, 6 months ago) by bouyer
Branches: netbsd-6
CVS tags: 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,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +5 -2
lines
Pull up following revision(s) (requested by christos in ticket #309):
lib/libedit/readline.c: revision 1.104
don't crash if add_history is called from an empty line. Called from
nslookup in new bind.
XXX: pullup to 6
Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Jun 5 00:30:22 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +5 -2
lines
don't crash if add_history is called from an empty line. Called from
nslookup in new bind.
XXX: pullup to 6
Revision 1.99.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:07:31 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.99.2.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.1: +10 -3
lines
sync with head.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Tue May 15 19:07:25 2012 UTC (12 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -2
lines
define the new variable
Revision 1.102: download - view: text, markup, annotated - select for diffs
Tue May 15 17:30:04 2012 UTC (12 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +9 -3
lines
Add rl_completion_word_break_hook from:
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/\
5ec6a45fa762b8cbd0305ca06acb8780335a486a
Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:27 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +4 -4
lines
sync with head
Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Mar 21 05:33:26 2012 UTC (12 years, 8 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base4
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3
lines
Use C89 functions definitions.
Remove use of __P
Revision 1.100: download - view: text, markup, annotated - select for diffs
Fri Nov 18 20:38:42 2011 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: netbsd-6-base
Branch point for: netbsd-6
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3
lines
Add missing *
Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Aug 16 16:25:15 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +17 -17
lines
re-enable -Wconversion
Revision 1.98: 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.97: preferred, colored
Changes since revision 1.97: +14 -16
lines
pass -Wconversion
Revision 1.97: download - view: text, markup, annotated - select for diffs
Fri Jul 29 20:58:07 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +18 -14
lines
- fix unused params
- unconditionalize vis.h
Revision 1.96: 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.95: preferred, colored
Changes since revision 1.95: +71 -71
lines
KNF return (\1); -> return \1;
Revision 1.95: 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.94: preferred, colored
Changes since revision 1.94: +60 -56
lines
kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Jul 28 17:33:39 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +18 -9
lines
handle systems without getpwent_r
Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Jul 28 00:54:26 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -3
lines
use vis.h from .
Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Sep 16 20:08:51 2010 UTC (14 years, 2 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.91: preferred, colored
Changes since revision 1.91: +82 -91
lines
unbreak readline history.
Revision 1.91: 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
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +17 -6
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.90: download - view: text, markup, annotated - select for diffs
Wed Aug 4 20:29:18 2010 UTC (14 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +8 -2
lines
provide rl_on_newline
Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Apr 15 00:57:33 2010 UTC (14 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +6 -3
lines
From Jess Thrysoee
- Fix wint_t to Int confusion
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Jan 3 18:27:10 2010 UTC (14 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +16 -12
lines
rename historyw -> history_w for consistency.
add wide tst code and make it the default.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Dec 30 23:54:52 2009 UTC (14 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +6 -6
lines
Fix wide build, test it, but don't turn it on yet.
Revision 1.86: 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.85: preferred, colored
Changes since revision 1.85: +90 -78
lines
Wide character support (UTF-8) from Johny Mattsson; currently disabled.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Sep 7 21:24:33 2009 UTC (15 years, 3 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +267 -23
lines
apply apple patches from:
http://opensource.apple.com/source/libedit/libedit-11/patches/
Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jul 22 15:57:40 2009 UTC (15 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +12 -12
lines
Fix memory leaks in error paths.
From Michael Cook mcook at bbn dot com
Revision 1.78.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.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +28 -20
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Apr 8 21:31:31 2009 UTC (15 years, 8 months ago) by christos
Branches: MAIN
CVS tags: jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
Fix off by one error reported by: Caleb Welton cwelton at greenplum dot com
Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Mar 31 17:53:03 2009 UTC (15 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +12 -4
lines
implement RL_PROMPT_{START,END}_IGNORE
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Feb 21 23:31:56 2009 UTC (15 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -4
lines
more size_t stuff.
Revision 1.80: 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
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +13 -11
lines
pass lint on _LP64.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Feb 12 13:39:49 2009 UTC (15 years, 10 months ago) by sketch
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -6
lines
More fixes for existing portability stuff.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Feb 5 19:15:26 2009 UTC (15 years, 10 months ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +22 -15
lines
add rl_set_prompt
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Jan 18 12:17:24 2009 UTC (15 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +8 -8
lines
fix -Wsign-compare issues
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Jan 11 15:00:23 2009 UTC (15 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +11 -10
lines
- insert a space after the recognized string if it was an exact match
- initialize properly the string used for completion.
From Alex Bligh alex at alex dot org dot uk
- Make char constants consistent
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:30:35 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +2 -5
lines
sync with head.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Apr 29 06:53:01 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
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,
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,
hpcarm-cleanup-nbase
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -5
lines
Convert to new 2 clause license
Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Apr 5 15:53:28 2008 UTC (16 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -5
lines
add EL_REFRESH for the benefit of readline
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Apr 4 21:18:34 2008 UTC (16 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +10 -3
lines
Add rl_forced_update_display() from Gerry Swislow
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Aug 12 07:41:51 2007 UTC (17 years, 4 months ago) by christos
Branches: MAIN
CVS tags: matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +7 -6
lines
patches from Axel Thimm
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun May 27 19:45:37 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +64 -6
lines
Add rl_completion_matches, fix remove_history
Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Nov 24 00:01:17 2006 UTC (18 years ago) by christos
Branches: 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
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +92 -3
lines
- 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.69: download - view: text, markup, annotated - select for diffs
Mon Aug 21 12:45:30 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -7
lines
Change to a 3 clause copyright after permission of the holders.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Jul 23 20:21:45 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -5
lines
PR/34062: Tanaka Akira: rl_deprep_term_function is NULL in libedit.
Default to rl_deprep_terminal as suggested; do the same for
rl_prep_term_function
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Mar 25 13:00:11 2006 UTC (18 years, 8 months ago) by rtr
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -6
lines
remove if/free block checking known condition
coverity 2762 / run 11
Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Mar 21 17:52:50 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -2
lines
Coverity CID 2743: Not really a memory leak, but make it obvious that we
always free tmp.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Mar 18 19:22:59 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Lint comment.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Mar 18 09:28:23 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +10 -6
lines
Coverity CID 1666: Plug memory leak.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Mar 18 09:19:02 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -6
lines
Coverity CID 1667: Plug memory leak
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Mar 18 09:15:57 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +10 -3
lines
Coverity CID 1662: Memory leak.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Mar 6 21:11:03 2006 UTC (18 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -4
lines
use the tty chars for reprint and eof instead of hard-coded ^R and ^D
Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Feb 13 14:12:04 2006 UTC (18 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -4
lines
PR/32817: Magnus Svensson: write_history and read_history returncode is not
readline compatible.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Feb 12 16:15:07 2006 UTC (18 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +23 -2
lines
Partial rl_getc_function support from Jess Thrysoee.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Jul 14 15:00:58 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +24 -2
lines
PR/30747: David N. Williams: libedit is missing remove_history()
Added, please test.
Revision 1.49.2.4: download - view: text, markup, annotated - select for diffs
Tue Jul 12 11:35:03 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.49.2.3: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.3: +7 -5
lines
Pull up revision 1.52 (requested by lukem in ticket #542):
check for pwd != NULL, fix a missed getpwnam.
Revision 1.49.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 12 11:33:40 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.49.2.2: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.2: +6 -4
lines
Pull up revision 1.50 (requested by lukem in ticket #542):
use getpwent_r
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Jun 11 18:18:59 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +14 -2
lines
PR/30500: Paul Shupak: Inconsistent definition of tilde_expand().
Provide a layer of indirection between the readline compatibility functions
and our internal implementation, so that we have the freedom to change the
function signature.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Jun 10 20:21:00 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +13 -3
lines
Bug reported from Martin Dietze:
The place to change the completion_append_character is
usually somewhere in the `rl_completion_entry_function'
callback which is where one usually can distinguish between
file- or dir-like entries to append a slash for dirs etc.
This does no longer work since `fn_complete()' takes the
`append_character' as argument before the callback is executed,
so that changes to the variable `rl_completion_append_character'
have in fact no effect for the current completion.
Fix by adding a function that returns the rl_completion_append_character,
when it gets passed in a filename in readline emulation.
Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Sat May 28 14:03:25 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.1: +3 -3
lines
Pull up revision 1.55 (requested by agc in ticket #353):
Use the correct type for the stored callback function
Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Sat May 28 14:02:27 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
Pull up revision 1.54 (requested by agc in ticket #353):
Sync the alternative readline interface with reality:
+ the rl_callback_handler_install takes a pointer to a void function
which has one char * argument (it's called that way in the readline
emulation source, otherwise there's no way to pass the line buffer
to the function which processes the line when EOL is encountered)
+ provide a prototype for that function signature and use it
Makes the callback readline interface work now.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri May 27 14:01:46 2005 UTC (19 years, 6 months ago) by agc
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
Use the correct type for the stored callback function
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri May 27 11:35:07 2005 UTC (19 years, 6 months ago) by agc
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3
lines
Sync the alternative readline interface with reality:
+ the rl_callback_handler_install takes a pointer to a void function
which has one char * argument (it's called that way in the readline
emulation source, otherwise there's no way to pass the line buffer
to the function which processes the line when EOL is encountered)
+ provide a prototype for that function signature and use it
Makes the callback readline interface work now.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat May 7 16:01:25 2005 UTC (19 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +25 -468
lines
Separate out the filename completion functions from the readline() code.
Pass in loads of parameters instead of relying on shed-loads of global
variables to modify the behaviour.
The filename completion code can now be enabled by code that uses el_gets().
(eg /bin/sh)
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Apr 19 03:29:18 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -5
lines
check for pwd != NULL, fix a missed getpwnam.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Apr 12 22:01:40 2005 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +17 -3
lines
PR/29958: Peter Bex: add rl_variable_bind and rl_attempted_completion_over
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Apr 2 06:28:10 2005 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +6 -4
lines
use getpwent_r
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Mar 10 19:34:46 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +23 -10
lines
Always update the position variables before the map function is called.
From Rob Rodgers, thanks!
Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Mar 9 23:55:35 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2
lines
set UNBUFFERED again after you do the line callback so that the new line
gets refreshed.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Sep 8 18:15:57 2004 UTC (20 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +6 -3
lines
cut out the middle-man and use el_insertstr() directly.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Feb 27 14:52:18 2004 UTC (20 years, 9 months 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.45: preferred, colored
Changes since revision 1.45: +22 -2
lines
Better fix for rl_prep_terminal() from Gerry Swislow.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Jan 17 17:57:40 2004 UTC (20 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4
lines
portability fixes.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Dec 5 13:37:48 2003 UTC (21 years ago) by lukem
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -4
lines
Tokenization function enhancements:
* Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str()
publically available in <histedit.h>
* Documented the public functions in editline(3)
* Renamed tok_line() -> tok_str()
* Added new tok_line() which takes a "const LineInfo *" instead of
"const char *" (the former has "cursor" information), and optionally
return the argv index ("int *cursorc") and offset within that index
("int *cursorv"). This means that completion routines can use the
tokenization code to crack the line and easily find which word the
cursor is at. (mmm, context sensitive completion :)
* Fixed TEST/test.c when using "continuation" lines (unmatched quote
or \ at EOL), and added some more DEBUG messages including highlighting
where the cursor is (with a `_').
Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Nov 3 03:22:55 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
Fix uninitialized variable.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Nov 2 01:45:14 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +21 -12
lines
From: Gerry Swislow gerry at certif dot com
1) File name completion should list the files in the current directory
if no text is entered. The previous version wouldn't list anything if
the text to complete was empty.
2) When listing directories, the entries "." and ".." shouldn't be
shown.
3) The filename completion should be used if the user's
rl_attempted_completion_function doesn't return any matches. The
previous version didn't do that.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Nov 1 23:39:22 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -2
lines
initialize ptr.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Oct 27 22:26:35 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +453 -365
lines
Make readline csh-like history work.
From Gerry Swislow <gerry at certif dot com>.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Oct 19 06:28:35 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -3
lines
add rl_catch_signals
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Oct 16 22:26:32 2003 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +115 -2
lines
More libedit readline emulation functions from: Gerry Swislow
<gerry at certif dot com>
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Oct 15 18:08:40 2003 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -3
lines
don't limit ^c to alpha c, and add VIS_NOSLASH so that vis(3) does not
produce \^c
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Oct 9 00:42:28 2003 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +14 -6
lines
PR/23107: Nathan Williams: ^D as the first char on the command line does
not DTRT in readline compatibility mode
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Sep 26 17:44:51 2003 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +98 -7
lines
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.34: download - view: text, markup, annotated - select for diffs
Sun Sep 14 22:15:23 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -8
lines
Match the stupid function pointer declarations with actual readline's 4.0.
This is gross.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Sep 14 21:55:39 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -4
lines
make this compile.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Sep 14 21:48:54 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +38 -15
lines
- provide enough hooks to compile gdb-5.3
- fix el_get(e, EL_TERMINAL, (char **))
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jun 19 16:04:57 2003 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -4
lines
From michael@moria.de:
Fix realloc case where we could be running out of space if too many matches.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jun 19 15:55:06 2003 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +11 -10
lines
From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Mar 29 22:48:38 2003 UTC (21 years, 8 months ago) by wiz
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
Consistently spell occurrence with two rs.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Mar 10 01:14:54 2003 UTC (21 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -10
lines
null is not 0
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Mar 10 00:56:38 2003 UTC (21 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -2
lines
include alloca.h for systems that need it.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jan 21 17:41:38 2003 UTC (21 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -7
lines
fix directory descriptor leak [from michael at moria dot de]
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Oct 27 21:43:35 2002 UTC (22 years, 1 month ago) by christos
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
remove unused variables.
Revision 1.24: 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.23: preferred, colored
Changes since revision 1.23: +12 -18
lines
vi mode and memory fixes from david laight.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Oct 27 20:24:28 2002 UTC (22 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +142 -23
lines
don't crash in memory shortage conditions.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Apr 9 01:57:34 2002 UTC (22 years, 8 months ago) by thorpej
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.21: preferred, colored
Changes since revision 1.21: +4 -6
lines
_rl_qsort_string_compare(): Fix casts. This makes gcc 3.2 happy,
and also allows both LINTED comments to be removed.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Mar 18 16:20:36 2002 UTC (22 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2
lines
Add a couple linted comment and enable WARNS=3
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Mar 18 16:00:57 2002 UTC (22 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +18 -20
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.19: download - view: text, markup, annotated - select for diffs
Wed Jan 10 08:10:45 2001 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -2
lines
fix partial completion - we failed to refresh screen in that case
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Jan 5 22:45:30 2001 UTC (23 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +14 -2
lines
depoison the pure editline code from readline compatibility hacks.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jan 5 21:15:49 2001 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Standard location of readline headers is /usr/include/readline/, so install
them there.
readline.h of libedit had to move to subdirectory 'readline', due to the way
BSD makefiles work; this is better than potentially fragile Makefile hacks
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jan 4 15:55:53 2001 UTC (23 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -4
lines
fix lint problems.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jan 1 15:52:25 2001 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +29 -9
lines
Add support for rl_completion_append_character and rl_special_prefixes.
This addresses lib/10513 by Giles Lean. Tested with PostgreSQL 7.0.2 psql.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jan 1 11:03:16 2001 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -5
lines
history_tokenize(): fix one off-by-one bug
rl_complete_internal(): only replace the completed string with common part
of possible matches if there is a possible completion
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Dec 31 09:50:32 2000 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +13 -10
lines
rl_display_match_list():
* pad entries shorter than 'max' by spaces correctly
* fix off-by-one error which caused extra newline to be printed
if the list fit exactly to a screen
* fix typo in _rl_qsort_string_compare, which caused the list to not
be sorted after all
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Dec 23 22:02:20 2000 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +185 -48
lines
completion_matches(): fix a off-by-one bug, fix variable name typo
implement displaying of possible completions, add hook to display the list
on second rl_complete() invocation in row (typically, double <TAB>)
This addresses the completion part of lib/11581 by Richard Earnshaw.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Sep 4 22:06:31 2000 UTC (24 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +274 -267
lines
convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Mar 10 13:06:43 2000 UTC (24 years, 9 months ago) by jdolecek
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.9: preferred, colored
Changes since revision 1.9: +3 -4
lines
Fix _rl_compat_sub() to really honour 'globally' flag instead
of making the substitution always globally - affects
_history_expand_command() and in turn history_expand()
All praise lint :)
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Mar 10 12:55:15 2000 UTC (24 years, 9 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +11 -8
lines
readline(): don't dereference NULL pointer if prompt is NULL
history_tokenize(): avoid stepping too far if backslash is last character
on the passed string
update some comments
This makes gdb \ escaping work reliably and fixes lib/9511 by Assar Westerlund.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jul 3 11:55:51 1999 UTC (25 years, 5 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -3
lines
don't try to free() something allocated with alloca() in rl_complete_internal().
(noticed while using completion in gdb and getting inundated with warnings from
the new free())
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jul 2 15:21:26 1999 UTC (25 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -6
lines
More trailing white space.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 12 18:58:05 1999 UTC (25 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -8
lines
Make this compile under linux
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 12 19:54:16 1998 UTC (26 years 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.4: preferred, colored
Changes since revision 1.4: +66 -50
lines
many problems; variables hidden by others, size_t <-> confusion
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed May 20 01:03:06 1998 UTC (26 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +24 -15
lines
Adjust to the libedit api changes.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Nov 12 21:56:05 1997 UTC (27 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3
lines
el_gets() takes an int *, not a size_t *.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Oct 23 22:51:59 1997 UTC (27 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +11 -11
lines
Const de-poisoning :-( Unfortunately the default gnu readline does not
have full prototypes... With those changes, and a single line change in
gdb/top.c, gdb links with -ledit
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Oct 23 22:24:12 1997 UTC (27 years, 1 month ago) by christos
Branches: MAIN
PR/4301: Jaromir Dolecek. Add gnu-readline wrapper for editline.
CVSweb <webmaster@jp.NetBSD.org>