History log of /openbsd/lib/libedit/history.c (Results 1 – 25 of 29)
Revision Date Author Comments
# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# ddc81437 11-Apr-2016 schwarze <schwarze@openbsd.org>

delete the "private" and "public" preprocessor macros, just use standard C;
OK martijn@


# 8dc8c690 11-Apr-2016 schwarze <schwarze@openbsd.org>

Clean up chartype.h:

* not used in tokenizer.c
* only use it for !NARROWCHAR
* no need for underscores before ct_{de,en}code_string()
* make the conversion buffer resize function private

OK martijn@


# e3191321 11-Apr-2016 schwarze <schwarze@openbsd.org>

get rid of the non-standard data type "Char" in almost all files;
ok martijn@


# 5c93237d 11-Apr-2016 schwarze <schwarze@openbsd.org>

Move wrapper macros to the two files actually needing them:
FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -> history.c
Strchr, tok_strdup -> tokenizer.c
FUN, TYPE, STR -> both of these file

Move wrapper macros to the two files actually needing them:
FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -> history.c
Strchr, tok_strdup -> tokenizer.c
FUN, TYPE, STR -> both of these files

OK martijn@

Also proofread by Christian Heckendorf <mbie at ulmus dot me>
who reported some whitespace issues in parse.c.

show more ...


# 59aed043 09-Apr-2016 schwarze <schwarze@openbsd.org>

Always compile with WIDECHAR on and delete that preprocessor switch.
OK martijn@.
Diff also proofread by Christian Heckendorf <mbie at ulmus dot me>.


# 7ccfa089 20-Mar-2016 schwarze <schwarze@openbsd.org>

Cleanup of standard header inclusion:

1. Add the missing <errno.h> to sig.c.
2. Do not include standard headers from private headers "chared.h"
and "el.h", include them directly where needed.
3. Del

Cleanup of standard header inclusion:

1. Add the missing <errno.h> to sig.c.
2. Do not include standard headers from private headers "chared.h"
and "el.h", include them directly where needed.
3. Delete a few needless inclusions of <ctype.h>.
4. Sort the standard headers.
5. Delete _GNU_SOURCE weirdness from histedit.h, that file doesn't even
need the access to wcsdup(3) mentioned in the comment.
6. Delete some trailing blanks and blanks before tabs.

OK czarkoff@

show more ...


# f3a50c9e 20-Mar-2016 schwarze <schwarze@openbsd.org>

Use getline(3) rather than fgetln(3) because it is standardized
and simpler and safer to use. Implemented by Christos Zoulas
following my suggestion, with a bug fix by me.


# 7b85e16b 30-Jan-2016 schwarze <schwarze@openbsd.org>

Fifth step in synching with NetBSD:
Delete the silly ptr_t and ioctl_t typedefs
and delete some "#ifdef notdef" code from "sys.h".
No functional change.
This makes hist.h identical to the NetBSD vers

Fifth step in synching with NetBSD:
Delete the silly ptr_t and ioctl_t typedefs
and delete some "#ifdef notdef" code from "sys.h".
No functional change.
This makes hist.h identical to the NetBSD version.
It reduces the remaining diff from +1526 -734 to +1430 -592.
OK czarkoff@

show more ...


# 28d54ee8 30-Jan-2016 schwarze <schwarze@openbsd.org>

Fourth step in synching with NetBSD:
KNF: Remove parentheses from return lines. No object change.
This makes emacs.c and prompt.c identical to the NetBSD versions.
It reduces the remaining diff from

Fourth step in synching with NetBSD:
KNF: Remove parentheses from return lines. No object change.
This makes emacs.c and prompt.c identical to the NetBSD versions.
It reduces the remaining diff from +2053 -1261 to +1526 -734.
OK czarkoff@

show more ...


# 014b1be8 17-Oct-2014 deraadt <deraadt@openbsd.org>

Remove non-exposed malloc/realloc/free wrappers, and then substitute
reallocarray() where it helps.
ok doug


# d47027c4 19-May-2014 nicm <nicm@openbsd.org>

Add a H_SAVE_FP operation to history() which lets the history be saved
to an open file pointer. From NetBSD via Eitan Adler.

ok millert


# 9e89f419 19-Jan-2014 tobias <tobias@openbsd.org>

Retain local changes from rev 1.13.

ok deraadt@


# 5f805b19 07-Jul-2011 okan <okan@openbsd.org>

sync with upstream, retaining local modifications.

ok nicm@


# aed0ee81 30-Jun-2010 nicm <nicm@openbsd.org>

Update libedit to bring it into sync with the latest version from NetBSD.

ok deraadt


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# b28794f6 23-Aug-2004 otto <otto@openbsd.org>

Fix fgetln handling and always increment the size if we need to realloc,
Based on a diff by kjell@; latter hunk from a diff by Sergey S. Kostyliov.
ok kjell@ canacar@


# 6e02e073 25-Nov-2003 otto <otto@openbsd.org>

Sync libedit to NetBSD libedit as of Nov 8, 2003.
Tested by jmc@ djm@ and myself


# d484b7d0 31-Oct-2003 otto <otto@openbsd.org>

Update to NetBSD libedit (from Oct 1, 2003), adding some string
cleaning and history bug fixes. The code includes GNU libreadline
functionality, but the corresponding header files are not installed,

Update to NetBSD libedit (from Oct 1, 2003), adding some string
cleaning and history bug fixes. The code includes GNU libreadline
functionality, but the corresponding header files are not installed,
since some libreadline functions are missing. There are some minor API
changes, notably:

old: EditLine *el_init(const char *, FILE *, FILE *);
new: EditLine *el_init(const char *, FILE *, FILE *, FILE *);

old: HistEvent *history(History *h, int op, ...);
new: int history(History *h, HistEvent *ev, int op, ...); plus some
changes in operation names. See editline(3) for details.

Tested by djm@, mouring@, jmc@.

ok deraadt@

show more ...


# 6580fee3 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 41d8ad6b 01-May-2003 avsm <avsm@openbsd.org>

is -Wall clean by making rcsid const


# 88a28a4c 05-Apr-2003 tdeval <tdeval@openbsd.org>

strcpy/strcat -> strlcpy/strlcat
ok tedu@, hints by deraadt@ and millert@


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


# 84d7b780 29-Jun-1997 millert <millert@openbsd.org>

Updates from NetBSD (christos@netbsd.org)
* Portability fixes:
__const -> const
BADSIG -> SIG_ERR
int flags -> u_int flags
#if __STDC__ -> #ifdef __STDC__
* Don't al

Updates from NetBSD (christos@netbsd.org)
* Portability fixes:
__const -> const
BADSIG -> SIG_ERR
int flags -> u_int flags
#if __STDC__ -> #ifdef __STDC__
* Don't allow CSWTCH to interfere with CSUSP on __SVR4 systems.
* Return -1 if the terminal set operation resulted in dumb terminal settings.
* Handle properly the case where the last line in the sourced file does
not have a trailing '\n'. From Jeffrey C Honig.
* editrc -> editline in editline(3)

show more ...


12