summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-09-10 13:48:51 +0000
committerdcs <dcs@FreeBSD.org>2000-09-10 13:48:51 +0000
commitfe786558be3f48fa2db1b642f59b4343062e9c5b (patch)
treecbd3300424476e4672335f8a15262b76d3083325 /sys/boot/common
parent14c49fbe71f515e8ac9f20955ec7f5917b9dfbad (diff)
downloadFreeBSD-src-fe786558be3f48fa2db1b642f59b4343062e9c5b.zip
FreeBSD-src-fe786558be3f48fa2db1b642f59b4343062e9c5b.tar.gz
Change NOFORTH comment character from # to \ followed by space,
to make things more interchangeable between it and the FORTH case. Perhaps requiring the space is a bit too much, but... Nothing in the tree seems to produce loader.rc files with comment line, at this time.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/interp.c b/sys/boot/common/interp.c
index e6bb3cc..d53a7ee 100644
--- a/sys/boot/common/interp.c
+++ b/sys/boot/common/interp.c
@@ -219,7 +219,7 @@ include(const char *filename)
#else
flags = 0;
/* Discard comments */
- if (input[0] == '#')
+ if (strncmp(input+strspn(input, " "), "\\ ", 2) == 0)
continue;
cp = input;
/* Echo? */
OpenPOWER on IntegriCloud