shithub: fsgen

Download patch

ref: a1ec5db9e60e956073183468ff7b8df57a695bd8
parent: 37b9bf68546c68257532c11f64e3685722144c4e
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Dec 16 06:15:40 EST 2025

removes misleading #line directives

--- a/code.c
+++ b/code.c
@@ -92,7 +92,7 @@
 void
 printpre()
 {
-	print("#line 0 \"preamble.inc\"\n"
+	print("%s",
 #include "preamble.cinc"
 	);
 }
@@ -151,11 +151,10 @@
 	else
 		s = buf;
 	
-	print("%s", "\n#line 0 \"fshandler.inc\"\n"
+	print("%s", "\n"
 #include "fshandler.cinc"
 	);
 	
-	print("\n#line 0 \"fsgen/code.c\"");
 	print("\n"
 	"Srv fs = {\n"
 	"	.attach = fsattach,\n"
@@ -180,7 +179,7 @@
 	"Srv*\n"
 	"getfs_%s()\n", s);
 	
-	print("%s", "#line 0 \"fsfunc.inc\"\n"
+	print("%s",
 #include "fsfunc.cinc"
 	);
 }
@@ -288,7 +287,6 @@
 void
 printqids()
 {
-	print("#line 0 \"fsgen/code.c\"\n");
 	print("enum {\n");
 	rprintqids(vqids, 1);
 	print("	Qmax,\n");
--