~sircmpwn/hare-dev

qbe: Fix parsing of multiple globals in datadef v1 PROPOSED

Ember Sawady: 1
 Fix parsing of multiple globals in datadef

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/35303/mbox | git am -3
Learn more about email & git

[PATCH qbe] Fix parsing of multiple globals in datadef Export this patch

Eg. data $a = { w $b $c }
---
 parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse.c b/parse.c
index 1912c8b..cfed548 100644
--- a/parse.c
+++ b/parse.c
@@ -1049,7 +1049,7 @@ parsedat(void cb(Dat *), Lnk *lnk)
				err("constant literal expected");
			cb(&d);
			t = nextnl();
		} while (t == Tint || t == Tflts || t == Tfltd || t == Tstr);
		} while (t == Tint || t == Tflts || t == Tfltd || t == Tstr || t == Tglo);
		if (t == Trbrace)
			break;
		if (t != Tcomma)
-- 
2.37.3