The NetBSD Project

CVS log for src/usr.bin/grep/util.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / grep

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 21 03:24:43 2013 UTC (3 months, 4 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, tls-maxphys-nbase, tls-maxphys-base, agc-symver-base, agc-symver, HEAD
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

Fix memory leak in  file_matching().

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 6 22:32:05 2012 UTC (12 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5
Branch point for: tls-maxphys
Changes since 1.15: +18 -22 lines
Diff to previous 1.15 (colored)

Consistently short cut the pattern loop on mismatches.
Don't assign 1 conditionally, if unconditional works as well.

Revision 1.15 / (download) - annotate - [select for diffs], Sun May 6 22:27:01 2012 UTC (12 months, 2 weeks ago) by joerg
Branch: MAIN
Changes since 1.14: +4 -19 lines
Diff to previous 1.14 (colored)

Remove matchall handling for now, it doesn't work correctly and as such,
it is a premature optimisation.

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 6 21:56:08 2012 UTC (12 months, 2 weeks ago) by joerg
Branch: MAIN
Changes since 1.13: +73 -65 lines
Diff to previous 1.13 (colored)

Make the matchall case a full short cut.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 18 23:22:42 2011 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

Avoid C99 features.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Apr 18 22:46:48 2011 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.11: +8 -8 lines
Diff to previous 1.11 (colored)

Add support for --null-data. Change -Z to behave like GNU grep's -Z.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 18 17:18:04 2011 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.10: +17 -22 lines
Diff to previous 1.10 (colored)

Redo context printing so that adjourning contexts don't print the
separator, following GNU grep's behavior in this regard.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 18 03:27:40 2011 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.9: +6 -2 lines
Diff to previous 1.9 (colored)

Include nbtool_config.h for tool builds.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 27 17:33:37 2011 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

If transforming patterns with \<...\> to implicit word bounaries, don't
change the global wflag, but use a per pattern flag derived from it.
Fixes usage of grep with multiple -w arguments.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 16 18:35:39 2011 UTC (2 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.7: +9 -6 lines
Diff to previous 1.7 (colored)

Fix signed / unsigned issues. Refactor basename usage to use a local
copy and do it only once, not for each pattern. Remove late inline.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 16 01:31:33 2011 UTC (2 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.6: +323 -180 lines
Diff to previous 1.6 (colored)

Replace usr.bin/grep with the BSD grep implementation from FreeBSD.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 25 14:06:00 2009 UTC (4 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: bouyer-quota2
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

sign-compare fixes

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 6 20:33:49 2007 UTC (5 years, 5 months ago) by cjep
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, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, 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-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, mjf-devfs2-base, mjf-devfs2, 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-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

sync with pkgsrc changes - reorder includes and add some casts

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 15 21:12:21 2006 UTC (7 years ago) by rillig
Branch: MAIN
CVS Tags: 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, hpcarm-cleanup, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Changed the type of some size variables from int to size_t. Added const
qualifiers to some parameters. These changes allow WARNS to be raised to
4.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 13 20:30:40 2006 UTC (7 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

warnx appends a newline, so the string does not have to contain one.
Remove it.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 30 17:37:10 2004 UTC (8 years, 6 months ago) by dsl
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
Changes since 1.1: +164 -59 lines
Diff to previous 1.1 (colored)

Add (unsigned char) cast to ctype functions
Change a couple of local buffers to 'unsigned char'

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 2 14:58:43 2004 UTC (9 years, 4 months ago) by cjep
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>