mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Generate C function bodies.
This commit is contained in:
1 parent
509e6b48a4
commit
5d0b664ccf
6 files changed
+285
-24
No files matched your search
@@ -152,7 +152,7 @@ func (q *checker) bcheckStatement(n *a.Node) error {
|
||||
// No-op.
|
||||
|
||||
default:
|
||||
return fmt.Errorf("check: unrecognized ast.Kind (%d) for checkStatement", n.Kind())
|
||||
return fmt.Errorf("check: unrecognized ast.Kind (%s) for checkStatement", n.Kind())
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ func (q *checker) tcheckStatement(n *a.Node) error {
|
||||
// TODO: check that we're in a for loop.
|
||||
|
||||
default:
|
||||
return fmt.Errorf("check: unrecognized ast.Kind (%d) for checkStatement", n.Kind())
|
||||
return fmt.Errorf("check: unrecognized ast.Kind (%s) for checkStatement", n.Kind())
|
||||
}
|
||||
|
||||
n.SetTypeChecked()
|
||||
|
||||
Reference in new issue
Block a user