aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit/el.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge NetBSD changes, among them:Stefan Farfeleder2007-06-101-68/+106
| | | | | | | | | | | | | | | | | el.c 1.44, el.h 1.17, editline.3 1.53, histedit.h 1.31: # add EL_GETFP, and EL_SETFP. el.c 1.42, term.c 1.46, term.h 1.18, editline.3 1.52, histedit.h 1.29: # - 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. Note: The latter change breaks the ABI of the el_get() function. Approved by: re (kensmith) Notes: svn path=/head/; revision=170511
* Merge NetBSD's rev. 1.41:Stefan Farfeleder2005-10-041-3/+3
| | | | | | | | PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work Fixed as suggested. Notes: svn path=/head/; revision=150945
* Sync libedit with recent NetBSD developments. Including improvements to theStefan Farfeleder2005-08-071-31/+96
| | | | | | | | | | vi-mode, removal of clause 3, cleanups and the export of the tokenization functions. Not included: config.h, filecomplete.{c,h} Notes: svn path=/head/; revision=148834
* Restore local bits lost in recent merge from NetBSD.Matthew N. Dodd2002-06-161-19/+24
| | | | Notes: svn path=/head/; revision=98293
* + Sync with NetBSD, bringing in feature enhancements.David E. O'Brien2001-10-011-203/+336
| | | | | | | | | | + Convert to ANSI-C function definitions + style(9) Submitted by: kris Notes: svn path=/head/; revision=84260
* Add __FBSDID()s to libeditMatthew Dillon2001-09-301-2/+2
| | | | Notes: svn path=/head/; revision=84201
* <blush> I tested the real code changes, but neglected to test theWarner Losh2000-05-221-3/+3
| | | | | | | | insertion of $FreeBSD$. I miffed it (pointy hat please). Hopefully no one will notice this short window where -current didn't compile. Notes: svn path=/head/; revision=60773
* Do not read editrc file from '.'. This can be as unsafe as havingWarner Losh2000-05-221-10/+11
| | | | | | | | | | | | | . first in root's path. While I'm here: o Add $FreeBSD$ o Get errno from <errno.h>, but extern int errno. Submitted by: Tim Vanderhoek Notes: svn path=/head/; revision=60772
* Add 2 functions: el_data_set() and el_data_get() which do what youMatthew N. Dodd1999-08-201-0/+20
| | | | | | | | | | | would expect. (Allow user data to be associated with an EditLine context). As this changes no existing interfaces and doesn't alter any structs visable to the user I've been told that its not necessary to bump the version of the library. Notes: svn path=/head/; revision=50070
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-09-161-2/+2
| | | | | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but... Notes: svn path=/head/; revision=39327
* Update libedit with changes from NetBSD. Includes history load/save,Mike Smith1997-06-251-2/+6
| | | | | | | | | | some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD Notes: svn path=/head/; revision=26926
* Fix a minor buffer overflow.Warner Losh1997-03-231-3/+2
| | | | | | | Obtained from: BSDi by way of Keith Bostic Notes: svn path=/head/; revision=24156
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-6/+6
| | | | Notes: svn path=/head/; revision=8870
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+335
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573