You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let vid = if lt.is-t(c"Nil",0) or lt <: t1(c"C",t0(c"void")) then SAtom(c"({})") else if std-c-is-ctype(lt) then SAtom(name.replace(c"-",c"_").rewrite-if-reserved) else SAtom(uuid());
92
+
let vid = if lt.is-t(c"Nil",0) or lt <: type-c-void then SAtom(c"({})") else if std-c-is-ctype(lt) then SAtom(name.replace(c"-",c"_").rewrite-if-reserved) else SAtom(uuid());
93
93
let v = mk-fragment().set(c"expression",vid);
94
94
let f = mk-fragment();
95
95
std-c-fragment-context = std-c-fragment-context.bind( lhs, v );
96
96
ctx = ctx.bind( name, lt, v );
97
-
if lt.is-t(c"Nil",0) or lt.is-t(c"Never",0) or lt <: t1(c"C",t0(c"void")) {
98
-
} else if lt <: t1(c"C",t0(c":Label")) {
97
+
if lt.is-t(c"Nil",0) or lt.is-t(c"Never",0) or lt <: type-c-void {
98
+
} else if lt <: type-c-label {
99
99
f = f.set(c"expression", v.get(c"expression") + SAtom(c":"));
100
100
} else {
101
101
(let pre, let post) = std-c-mangle-declaration(lt, t);
@@ -110,7 +110,7 @@ let std-c-compile-expr(ctx: FContext, t: AST, is-stmt: Bool): Fragment = (
110
110
_ => (
111
111
let rf = std-c-compile-expr(ctx, rhs, false);
112
112
f = f.set(c"frame", f.get(c"frame") + rf.get(c"frame"));
113
-
if lt.is-t(c"Nil",0) or lt.is-t(c"Never",0) or lt <: t1(c"C",t0(c"void")) {
113
+
if lt.is-t(c"Nil",0) or lt.is-t(c"Never",0) or lt <: type-c-void {
114
114
f = f.set(c"expression", SAtom(c"({") + rf.get(c"expression") + SAtom(c";({});})"));
0 commit comments