From 267e65357c2e6d98cedebe55ec4cbca95af68f13 Mon Sep 17 00:00:00 2001 From: Cyril Bur Date: Thu, 15 Mar 2018 16:58:13 +1100 Subject: external/ffspart: Allow # comments in input file Signed-off-by: Cyril Bur Signed-off-by: Stewart Smith --- external/ffspart/ffspart.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'external') diff --git a/external/ffspart/ffspart.c b/external/ffspart/ffspart.c index 0fe5840..309f9b6 100644 --- a/external/ffspart/ffspart.c +++ b/external/ffspart/ffspart.c @@ -224,6 +224,10 @@ int main(int argc, char *argv[]) int side = -1; uint32_t pbase, psize, pactual = 0; + /* Inline comments in input file */ + if (line[0] == '#') + continue; + if (line[strlen(line) - 1] == '\n') line[strlen(line) - 1] = '\0'; -- cgit v1.1