diff lwasm/pseudo.c @ 567:71ba873a0ec6

Allow non-quoted file names to have offset/length for includebin
author William Astle <lost@l-w.ca>
date Thu, 21 Dec 2023 22:23:39 -0700
parents d746a52e00db
children b549a3a417a9
line wrap: on
line diff
--- a/lwasm/pseudo.c	Thu Dec 21 22:20:05 2023 -0700
+++ b/lwasm/pseudo.c	Thu Dec 21 22:23:39 2023 -0700
@@ -1500,7 +1500,7 @@
 	}
 	else
 	{
-		for (p2 = *p; *p2 && !isspace(*p2); p2++)
+		for (p2 = *p; *p2 && *p2 != ',' && !isspace(*p2); p2++)
 			/* do nothing */ ;
 	}
 	fn = lw_strndup(*p, p2 - *p);