tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bmake: variable modifiers in SysV include



On Wed, Apr 04, 2018 at 02:21:43PM +0000, Pietro Cerutti wrote:
 > > -		    strchr(line, ':') == NULL) {
 > > +		((cp = strchr(line, ':')) == NULL ||
 > > +		 (cp[1] != '\0' && !isspace((int)cp[1])))) {
 > > 		/*
 > > 		 * It's an S3/S5-style "include".
 > > 		 */
 > 
 > Yep, that'd work. Thanks!

To be correct it needs to count and not look inside matching {} () pairs.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index