Generate C local variables.

This commit is contained in:
Nigel Tao committed 2017-05-28 14:36:42 +10:00
1 parent 491985b34f
commit ca78c343cb
4 files changed
+57 -3

No files matched your search

+3
View File
@@ -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
View File
@@ -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
}
}