Teach the menu system to ignore TEXT blocks for now. syslinux-3.40-pre8
authorH. Peter Anvin <hpa@zytor.com>
Wed, 28 Feb 2007 06:47:32 +0000 (22:47 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 28 Feb 2007 06:47:32 +0000 (22:47 -0800)
com32/modules/readconfig.c

index 5489c72..6dd0cb3 100644 (file)
@@ -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 )