The NetBSD Project

CVS log for src/usr.bin/make/str.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.35 / (download) - annotate - [select for diffs], Wed Feb 12 01:35:56 2014 UTC (9 months, 2 weeks ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7, HEAD
Changes since 1.34: +10 -4 lines
Diff to previous 1.34 (colored)

Reduce the calls to realloc from brk_string by basing initial argmax guess
on length of input.

Reviewed by: christos

Revision 1.34 / (download) - annotate - [select for diffs], Sat Mar 3 23:16:47 2012 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, dholland-make-base, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.33: +5 -3 lines
Diff to previous 1.33 (colored)

Note in comment that Str_Match() does not detect or report invalid
patterns. This is not critical, since for the moment both possible
cases (unclosed [], and \ at the end of the string) are handled more
or less sanely.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 25 21:17:21 2009 UTC (5 years, 9 months ago) by sno
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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-5-RELEASE, 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-6-RELEASE, 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-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

replace c++ style comment by a c-style one

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:37 2009 UTC (5 years, 10 months ago) by dsl
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)

Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Dec 19 22:04:36 2008 UTC (5 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.30: +11 -4 lines
Diff to previous 1.30 (colored)

PR/32154: Roland Illig: brk_string fails to report errors in unquoted strings.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Dec 19 21:34:14 2008 UTC (5 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.29: +8 -4 lines
Diff to previous 1.29 (colored)

PR/34138: Roland Illig: In the non-expand case, fix brk_string not to eat
quotes.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 6 22:09:21 2008 UTC (6 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, 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-5-RELEASE, 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
Changes since 1.28: +7 -7 lines
Diff to previous 1.28 (colored)

Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 15 21:29:50 2008 UTC (6 years, 9 months ago) by christos
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, mjf-devfs2-base, mjf-devfs2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.27: +10 -10 lines
Diff to previous 1.27 (colored)

back all changes out until I fix it properly.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 14 22:11:20 2008 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: christos-broken
Changes since 1.26: +13 -13 lines
Diff to previous 1.26 (colored)

- use pid_t/size_t as appropriate instead of int.
- use %ld to print pids.
- fix a bit of lint.
- WARNS=4

Revision 1.26 / (download) - annotate - [select for diffs], Fri Dec 22 20:28:31 2006 UTC (7 years, 11 months ago) by erh
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, matt-armv6, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Changes since 1.25: +11 -3 lines
Diff to previous 1.25 (colored)

Correctly handle '\' at the end of a variable in the non-expanding case.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 11 19:11:00 2006 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.24: +5 -3 lines
Diff to previous 1.24 (colored)

If a word is "" eat the last quote since we ate the first.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 8 16:42:54 2005 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored)

From Max Okumoto:
- Remove casts to NULL.
- Remove space between cast and object.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Feb 16 15:11:52 2005 UTC (9 years, 9 months ago) by christos
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.22: +4 -4 lines
Diff to previous 1.22 (colored)

PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 7 00:04:40 2004 UTC (10 years, 6 months ago) by ross
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Simplify build, no functional changes.

Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().

It's now possible to build make on some hosts with: cc *.c */*.c

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 27 21:29:37 2003 UTC (11 years, 2 months ago) by sjg
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.20: +4 -5 lines
Diff to previous 1.20 (colored)

Implement :[] modifier to allow picking a range of words out of a variable.
Also :tW and a W flag to :C and :S to allow treating value as a single word.
Add unit tests for the above, and fix some corner cases.
Based on patches supplied by Alan Barrett <apb@cequrux.com>

Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:57 2003 UTC (11 years, 3 months ago) by agc
Branch: MAIN
Changes since 1.19: +33 -3 lines
Diff to previous 1.19 (colored)

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

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

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 14 18:19:13 2003 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.18: +19 -23 lines
Diff to previous 1.18 (colored)

Pass WARNS=3

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jun 15 18:24:57 2002 UTC (12 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.17: +23 -31 lines
Diff to previous 1.17 (colored)

Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Nov 6 23:31:09 1998 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, 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, 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, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

- full prototypes
- more conservative printf
- char -> unsigned char

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 26 19:20:37 1998 UTC (16 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.15: +11 -45 lines
Diff to previous 1.15 (colored)

PR/5210: Hauke Fath: make core dumps with .SHELL
Unfortunately this revealed a deeper problem with the brk_string code.
To fix it:
	- remove sharing of the buffer between brk_string invocations
	- change the semantics of brk_string so that the argument array
	  starts with 0, and return the buffer where the strings are
	  stored

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 28 03:31:10 1997 UTC (17 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored)

wrap #include <sys/cdefs.h>, __RCSID(...) stuff in #ifndef MAKE_BOOTSTRAP

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 1 21:17:37 1997 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Add WARNS=1
RCSID police

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 6 17:59:23 1996 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.12: +17 -16 lines
Diff to previous 1.12 (colored)

- Merge in FreeBSD and Lite2 changes.
- Fix bug where a non-archive target with a .a suffix would always
  be considered to be out of date, since it does not have a TOC.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 29 02:17:34 1996 UTC (18 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.11: +4 -5 lines
Diff to previous 1.11 (colored)

Added erealloc() function that calls enomem() if the allocation fails
(this is like the existing emalloc() function).  Changed all realloc()
calls to erealloc().

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 30 17:36:27 1995 UTC (19 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Always ensure space for trailing NULL in argv

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 14 15:19:56 1995 UTC (19 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Changes since 1.9: +7 -2 lines
Diff to previous 1.9 (colored)

- $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 4 23:44:41 1995 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.8: +5 -3 lines
Diff to previous 1.8 (colored)

str.c: Don't free NULL; does not work with non posix frees.
var.c: Minor memory leak plugged.
suff.c: Don't add extra sources on the null suffix if it has dependency
	lines or commands attached to it [POSIX says so]

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 16 18:50:18 1994 UTC (20 years, 5 months ago) by jtc
Branch: MAIN
CVS Tags: 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
Changes since 1.7: +20 -3 lines
Diff to previous 1.7 (colored)

Christos' fix for quoting variable extraction properly.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 6 22:45:43 1994 UTC (20 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.6: +38 -12 lines
Diff to previous 1.6 (colored)

Fixes from Christos Zoulas, who used purify, objectcenter and testcenter
to find memory leaks and illegal memory accesses.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 17 15:55:42 1994 UTC (20 years, 6 months ago) by jtc
Branch: MAIN
Changes since 1.5: +8 -2 lines
Diff to previous 1.5 (colored)

Properly parse null command line arguments in makefile rules.
Fix from Christos Zoulas.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 23 00:52:13 1994 UTC (20 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.4: +6 -3 lines
Diff to previous 1.4 (colored)

Fixes from Christos Zoulas:
The following two patches fix a couple of problems with make(1)

1. Null Suffixes were not being copied, but they were being free'd
   This caused rules of the form:

   .c:
	${CC} ...

   to access invalid memory and potentially core dump..
   [That was always broken; I did not break that one :-)]

2. My recent fixes to parse ${VAR:%.foo=%.bar} handled the null string
   case incorrectly (${VAR:=.c} was broken).

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 5 00:35:08 1994 UTC (20 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.3: +106 -10 lines
Diff to previous 1.3 (colored)

fixes/improvements from Christos Zoulas <christos@deshaw.com>.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 13 21:02:03 1994 UTC (20 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Include appropriate header files to bring prototypes into scope.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:11:43 1993 UTC (21 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 8 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>