mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Generate C local variables.
This commit is contained in:
1 parent
491985b34f
commit
ca78c343cb
4 files changed
+57
-3
No files matched your search
@@ -443,6 +443,9 @@ func NewTypeExpr(pkgOrDec t.ID, name t.ID, arrayLengthMin *Expr, max *Expr, inne
|
||||
}
|
||||
}
|
||||
|
||||
// MaxBodyDepth is an advisory limit for a function body's recursion depth.
|
||||
const MaxBodyDepth = 255
|
||||
|
||||
// Func is "func ID0.ID1(LHS)(RHS) { List1 }":
|
||||
// - FlagsImpure is "ID1" vs "ID1!"
|
||||
// - FlagsSuspendible is "ID1" vs "ID1?", it implies FlagsImpure
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@ func (q *checker) tcheckVars(n *a.Node) error {
|
||||
return nil
|
||||
}
|
||||
for _, l := range n.Raw().SubLists() {
|
||||
for _, m := range l {
|
||||
if err := q.tcheckVars(m); err != nil {
|
||||
for _, o := range l {
|
||||
if err := q.tcheckVars(o); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user