ref: 8affbe8ac247f12354241aec1b237d6d0eb7eedd
parent: 0ad44955a094502fa3bf9a5cef637bc62072f91c
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Dec 16 09:59:13 EST 2025
support comments
--- a/main.c
+++ b/main.c
@@ -37,6 +37,8 @@
case OUTSIDE:
if (s[0] == 0)
break;
+ if (s[0] == '#')
+ break;
if (s[0] == '/') {currentfile = addfile(s);
if (!currentfile)
@@ -75,6 +77,8 @@
case HASFILE:
if (s[0] == 0)
break;
+ if (s[0] == '#')
+ break;
if (s[0] == '/') {state = OUTSIDE;
goto Retry;
@@ -140,6 +144,8 @@
case OUTSIDE:
if (s[0] == 0)
break;
+ if (s[0] == '#')
+ break;
if (s[0] == '/') {currentfile = addfile(s);
if (!currentfile)
@@ -183,6 +189,8 @@
break;
case HASFILE:
if (s[0] == 0)
+ break;
+ if (s[0] == '#')
break;
if (s[0] == '/') {state = OUTSIDE;
--
⑨