From 26d94271ebf3f0463d09d7009fa83a9e2705fed8 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 27 Feb 2007 22:47:32 -0800 Subject: Teach the menu system to ignore TEXT blocks for now. --- com32/modules/readconfig.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/com32/modules/readconfig.c b/com32/modules/readconfig.c index 5489c72d..6dd0cb3e 100644 --- a/com32/modules/readconfig.c +++ b/com32/modules/readconfig.c @@ -528,6 +528,16 @@ static void parse_config_file(FILE *f) } } } + } else if ( looking_at(p, "text") ) { + p = skipspace(p+4); + + /* p points to the TEXT command */ + + while ( fgets(line, sizeof line, f) ) { + p = skipspace(line); + if (looking_at(p, "endtext")) + break; + } } else if ( looking_at(p, "append") ) { char *a = strdup(skipspace(p+6)); if ( ld.label ) -- cgit v1.2.1