1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Allow leading whitespace before '#' when identifying comments.

Submitted by: Dave Bodenstab <imdave@mcs.net>
This commit is contained in:
Brian Somers 1997-12-21 02:11:48 +00:00
parent bb1d272c41
commit aa2e5be7ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31913

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: systems.c,v 1.30 1997/12/17 21:21:42 brian Exp $
* $Id: systems.c,v 1.31 1997/12/17 21:22:01 brian Exp $
*
* TODO:
*/
@ -288,6 +288,8 @@ ReadSystem(const char *name, const char *file, int doexec)
if (issep(*cp)) {
n = strspn(cp, " \t");
cp += n;
if (*cp == '#')
continue;
len = strlen(cp);
if (!len)
continue;