From 2ae7c98e2901c0772a9e214877c93e948b3b8597 Mon Sep 17 00:00:00 2001 From: "Daniel C. Sobral" Date: Sun, 10 Sep 2000 13:48:51 +0000 Subject: [PATCH] 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. --- sys/boot/common/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/common/interp.c b/sys/boot/common/interp.c index e6bb3cccdf7b..d53a7ee5b70e 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? */