From a22bdd20a50cc39d19866d6dc220d1f6b15c627a Mon Sep 17 00:00:00 2001 From: "Konstantin Kirik (snegovick)" Date: Thu, 4 Dec 2025 18:39:51 +0300 Subject: Rewrite anonymous structs to stop compiler complaints about multiple definitions --- utils/ql/asmout.c | 2 ++ utils/ql/l.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'utils/ql') diff --git a/utils/ql/asmout.c b/utils/ql/asmout.c index 4e685a9c..23f2a4a7 100644 --- a/utils/ql/asmout.c +++ b/utils/ql/asmout.c @@ -1,5 +1,7 @@ #include "l.h" +struct s_oprange oprange[ALAST]; + #define OPVCC(o,xo,oe,rc) (((o)<<26)|((xo)<<1)|((oe)<<10)|((rc)&1)) #define OPCC(o,xo,rc) OPVCC((o),(xo),0,(rc)) #define OP(o,xo) OPVCC((o),(xo),0,0) diff --git a/utils/ql/l.h b/utils/ql/l.h index 6baabc3b..b23d8440 100644 --- a/utils/ql/l.h +++ b/utils/ql/l.h @@ -86,11 +86,12 @@ struct Optab char size; char param; }; -struct +struct s_oprange { Optab* start; Optab* stop; -} oprange[ALAST]; +}; +extern struct s_oprange oprange[ALAST]; enum { -- cgit v1.2.3