Line Editor
Get series with b4
b4 am [email protected]Versions newest first
- v6 Latest8 patches 0 repliesNew
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | edit: Initial revision.ell/ ell/ | +844 | 0 replies | |
| 2/8 | ell: Add include directive for 'ell/edit.h'.ell/ | +1 | 0 replies | |
| 3/8 | ell/Makefile: Added 'edit.[ch]' to HEADERS and SOURCES.Makefile.am | +2 | 0 replies | |
| 4/8 | edit: Added 'l_edit_*' symbols.ell/ | +25 | 0 replies | |
| 5/8 | edit: pass the l_edit instance to the display and debug handlers.ell/ ell/ | +4 | 0 replies | |
| 6/8 | edit: change return signatures from 'bool' to 'int'ell/ ell/ | +88 | 0 replies | |
| 7/8 | edit: change the 'l_edit_enter' return signature from 'char *' to 'int'ell/ ell/ | +10 | 0 replies | |
| 8/8 | edit: improve error handling of 'mbstowcs' and 'wcstombs' functions.ell/ | +44 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 0/8] Line Editor
This expands on Marcel Holtman's 2023-12-22 RFCv4 patch for a line editor.
* pass the l_edit instance to the display and debug handlers.
l_edit integrations are made easier when they have access to the instance pointer in their callbacks.
* Return status is 'int' rather than 'bool' with 0 as success and < 0 as failure where the failures are negated POSIX error numbers. This removes the need for system integrators to intuit their own errors on a previously-false Boolean return status.
* improve error handling of 'mbstowcs' and 'wcstombs' functions.
On error, the 'mbstowcs' and 'wcstombs' functions could return 'SIZE_MAX' when uncountering unconvertable character sequences.
Ensure that such errors are not obscured and are passed along to the caller.
This has proven to work well with the RFCv4 and the corresponding demo-{cli,edit} applications.
Grant Erickson (8):
edit: Initial revision.
ell: Add include directive for 'ell/edit.h'. ell/Makefile: Added 'edit.[ch]' to HEADERS and SOURCES.
edit: Added 'l_edit_*' symbols.
edit: pass the l_edit instance to the display and debug handlers.
edit: change return signatures from 'bool' to 'int'
edit: change the 'l_edit_enter' return signature from 'char *' to
'int'
edit: improve error handling of 'mbstowcs' and 'wcstombs' functions.
Makefile.am | 2 + ell/edit.c | 826 ++++++++++++++++++++++++++++++++++++++++++++++++++++ ell/edit.h | 59 ++++ ell/ell.h | 1 + ell/ell.sym | 25 ++ 5 files changed, 913 insertions(+) create mode 100644 ell/edit.c create mode 100644 ell/edit.h
Signature · 1 line
2.45.0