The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Sun Jul 6 18:15:34 2014 UTC (3 weeks, 1 day ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.26: +7 -6 lines
Diff to previous 1.26 (colored)

Bounds search for reallocated index, from OpenBSD via Andreas Fett

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 16 16:25:15 2011 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-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-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

re-enable -Wconversion

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 29 15:16:33 2011 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.24: +18 -18 lines
Diff to previous 1.24 (colored)

KNF return (\1); -> return \1;

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 28 01:05:20 2011 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

term -> terminal
XXX: need to rename key_ too.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 30 22:37:40 2009 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.22: +57 -35 lines
Diff to previous 1.22 (colored)

Wide character support (UTF-8) from Johny Mattsson; currently disabled.

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 29 04:58:15 2005 UTC (9 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-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-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Update for recent parse__escape() prototype change

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 29 03:55:37 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

PR/25694: Luke Mewburn: Don't abuse unconstify'ing a string and writing to
it, because you'll core dump. Also remove extra const that gives pain to
the irix compiler.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 5 13:37:48 2003 UTC (10 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, 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
Changes since 1.19: +3 -4 lines
Diff to previous 1.19 (colored)

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.19 / (download) - annotate - [select for diffs], Sun Nov 2 20:06:57 2003 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.18: +11 -2 lines
Diff to previous 1.18 (colored)

Handle M- as escape. XXX: should probably select the meta-map instead.
From Gerry Swislow  gerry at certif com

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 15 18:08:40 2003 UTC (10 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

don't limit ^c to alpha c, and add VIS_NOSLASH so that vis(3) does not
produce \^c

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:32 2003 UTC (10 years, 11 months ago) by agc
Branch: MAIN
Changes since 1.16: +3 -7 lines
Diff to previous 1.16 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 21 18:40:24 2003 UTC (11 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Add a uniquefier for the history function.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 18 16:00:56 2002 UTC (12 years, 4 months ago) by christos
Branch: 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, fvdl_fs64_base
Changes since 1.14: +8 -9 lines
Diff to previous 1.14 (colored)

- constify; passes all gcc and lint strict checks.
- add config.h [Jason Evans], to create a portable version of libedit that
  can be easily compiled on other OS's.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 23 15:55:30 2001 UTC (13 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

sprinkle couple const

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 4 22:06:31 2000 UTC (13 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.12: +149 -161 lines
Diff to previous 1.12 (colored)

convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 10 12:25:47 2000 UTC (14 years, 4 months ago) by jdolecek
Branch: 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
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

include <stdlib.h> to get definition of malloc() and free(), so it's
possible to compile this file separately when debugging

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 2 15:21:26 1999 UTC (15 years, 1 month ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

More trailing white space.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 5 20:38:01 1999 UTC (15 years, 5 months ago) by christos
Branch: 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
Changes since 1.9: +6 -4 lines
Diff to previous 1.9 (colored)

M-X:<enter> core-dumped.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 12 20:08:22 1998 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

delint

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 29 02:26:01 1998 UTC (16 years ago) by lukem
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

* add more checks for NULL pointers in passed arguments
* implement el_get(EditLine *, int op, void *result), which does the
  inverse of el_set()
* add EL_EDITMODE operation to el_set and el_get; if non zero editing
  is enabled (the default).
* add "edit  on | off" editrc command, which modifies EL_EDITMODE.
  users can now add '*:edit off' in ~/.editrc as an advisory to
  disable editing.

NOTE: at this time EL_EDITMODE is just an indication of the
state of the 'edit' command. It's up to the application to check
this after el_source() or el_parse() to determine if editing is still
required.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 21 11:12:35 1998 UTC (16 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.6: +15 -4 lines
Diff to previous 1.6 (colored)

in el_parse(), use a temporary buffer to store the program name when
comparing, preventing trashing of argv[0]. remove note in man page
warning of former behaviour.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 6 18:25:31 1997 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Fix compiler warnings.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 11 09:57:08 1997 UTC (17 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

* document ^char and \ escape sequences
* when parsing ^char control chars, check the correct char when determining
  validity (previously, ^char was a NOP interpreted as the literal string
  because of this bug)

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 11 06:48:02 1997 UTC (17 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.3: +9 -1 lines
Diff to previous 1.3 (colored)

RCSid police
editline first appeared in 4.4BSD not NetBSD1.0

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 11 06:26:31 1997 UTC (17 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored)

* in el_parse(), don't reference argv[0] if argc < 1 (return -1 instead)
* clarify return value of el_parse()

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 9 13:12:17 1997 UTC (17 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.1: +4 -6 lines
Diff to previous 1.1 (colored)

* add a man page for the editline routines
* add a man page describing editrc
* fix bugs in el_parse():
	* didn't execute command when program name matched (test reversed)
	* was checking against empty string instead of program name
	* after checks, command to run also pointed to empty string

[christos - the author of libedit - ok-ed the man pages in general (which I
 wrote from scratch by RTFS) as well as the bugfix]

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri May 6 06:01:44 1994 UTC (20 years, 2 months ago) by cgd
Branch: CSRG
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0, lite-2, lite-1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

libedit!

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 6 06:01:43 1994 UTC (20 years, 2 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>