mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Add use_save_code to std/gif/decode_lzw.puffs.
This commit is contained in:
1 parent
0b034d7f6e
commit
ddbbdecce6
5 files changed
+65
-6
No files matched your search
@@ -21,6 +21,27 @@ func (z *facts) appendFact(fact *a.Expr) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
switch fact.ID0().Key() {
|
||||
case 0:
|
||||
for _, f := range *z {
|
||||
if f.ID0().Key() != t.KeyXBinaryEqEq {
|
||||
continue
|
||||
}
|
||||
if fact.Eq(f.LHS().Expr()) {
|
||||
z.appendFact(f.RHS().Expr())
|
||||
} else if fact.Eq(f.RHS().Expr()) {
|
||||
z.appendFact(f.LHS().Expr())
|
||||
}
|
||||
}
|
||||
case t.KeyXBinaryAnd:
|
||||
z.appendFact(fact.LHS().Expr())
|
||||
z.appendFact(fact.RHS().Expr())
|
||||
return
|
||||
case t.KeyXAssociativeAnd:
|
||||
// TODO.
|
||||
}
|
||||
|
||||
*z = append(*z, fact)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user