The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 16 16:13:16 2011 UTC (2 years, 7 months ago) by plunky
Branch: MAIN
CVS Tags: 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, HEAD
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

NULL does not need a cast, here

Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 16 16:25:15 2011 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.29: +13 -10 lines
Diff to previous 1.29 (colored)

re-enable -Wconversion

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jul 29 23:44:44 2011 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

pass -Wconversion

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jul 29 20:58:07 2011 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.27: +3 -7 lines
Diff to previous 1.27 (colored)

- fix unused params
- unconditionalize vis.h

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

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

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 28 20:50:55 2011 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.25: +29 -25 lines
Diff to previous 1.25 (colored)

kill ptr_t and ioctl_t, add  * sizeof(*foo) to all allocations.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 28 17:33:55 2011 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.24: +7 -4 lines
Diff to previous 1.24 (colored)

fix unused variable warnings on systems without _r functions

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 28 00:50:23 2011 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.23: +19 -15 lines
Diff to previous 1.23 (colored)

eliminate alloca for portability
portable getpw{nam,uid}

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 6 00:05:38 2010 UTC (3 years, 4 months ago) by dholland
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: +16 -7 lines
Diff to previous 1.22 (colored)

Improve previous to avoid changing the interface of an externally
exposed function. (But note that this function is neither documented
nor declared in any installed header file, and it probably should not
be externally exposed.) Related to PR 44183, closes PR 44186.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Dec 2 04:42:46 2010 UTC (3 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

add const, from PR 44183.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 2 04:35:17 2010 UTC (3 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.20: +35 -28 lines
Diff to previous 1.20 (colored)

Fix up bodgy code for printing completion matches; it used to sometimes
skip entries, print (null), run off the end of the array, or occasionally
receive SIGSEGV, and now will, hopefully at least, do none of that.

Based in part on the patch in PR 44183 from Sergio Acereda; I also
did some tidyup and fixed it to print top-to-bottom first like ls(1).

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 15 21:24:31 2010 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

don't increment i twice in the loop. From Michael Byrnes

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 1 18:20:26 2010 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.18: +15 -8 lines
Diff to previous 1.18 (colored)

tidy up memory allocation and don't unnecessarily print "./" before names.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 18 19:17:42 2010 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

PR/42637: Joachim Kuebart: Shell tab completion crashes due to libedit stack
smashing

Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 30 22:37:40 2009 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.16: +22 -18 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 28 21:55:38 2009 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.15: +8 -5 lines
Diff to previous 1.15 (colored)

improve on the listing display by printing only one character after the
filename not two, and no trailing blanks. I will revisit this when I write
the ls-F code.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:29 2009 UTC (4 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.13: +12 -12 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 16 00:15:45 2009 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

fix sign compare issues.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 15 21:55:23 2009 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.13: +11 -11 lines
Diff to previous 1.13 (colored)

pass lint on _LP64.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 26 17:32:41 2009 UTC (5 years, 2 months ago) by apb
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (colored)

Define HAVE_STRUCT_DIRENT_D_NAMLEN in config,h, and test it when
deciding whether to use entry->d_namlen or strlen(entry->d_name).
Addresses PR 40477 by Robert Millan.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 11 15:00:23 2009 UTC (5 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

- 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.10.16.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:35 2008 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.10: +2 -5 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:01 2008 UTC (5 years, 11 months ago) by martin
Branch: 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-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, 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
Changes since 1.10: +2 -5 lines
Diff to previous 1.10 (colored)

Convert to new 2 clause license

Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 9 16:58:38 2006 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, 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, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.9: +15 -7 lines
Diff to previous 1.9 (colored)

don't use alloca with ssp.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 21 12:45:30 2006 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.8: +3 -7 lines
Diff to previous 1.8 (colored)

Change to a 3 clause copyright after permission of the holders.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Aug 3 13:41:38 2005 UTC (8 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Fix reversed test; from Gerry Swislow

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 11 18:18:59 2005 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored)

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.6 / (download) - annotate - [select for diffs], Fri Jun 10 20:21:00 2005 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.5: +26 -27 lines
Diff to previous 1.5 (colored)

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.5 / (download) - annotate - [select for diffs], Wed May 18 22:34:41 2005 UTC (8 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.4: +5 -3 lines
Diff to previous 1.4 (colored)

Make completion_matches non-static since readline wants it.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 12 15:48:40 2005 UTC (8 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.3: +13 -7 lines
Diff to previous 1.3 (colored)

PR/30215: Kouichirou Hiratsuka: /bin/sh dumps core with tabcomplete
Don't core-dump when trying to complete an empty line; instead assume ./

Revision 1.3 / (download) - annotate - [select for diffs], Mon May 9 20:10:33 2005 UTC (8 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.2: +35 -32 lines
Diff to previous 1.2 (colored)

Use getpwuid_r(getuid(), ...) to expand ~/....
Don't replace ~xyz with /home/xyz when expanding ~

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 7 16:28:32 2005 UTC (8 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

gdb directly calls filename_completion_function()

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 7 16:01:25 2005 UTC (8 years, 11 months ago) by dsl
Branch: MAIN

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)

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>