Rename skip32 to skip_u32

This commit is contained in:
Nigel Tao committed 2020-05-27 23:29:20 +10:00
1 parent 1ed0f89948
commit 8b70ad0565
12 files changed
+106 -106

No files matched your search

+2 -2
View File
@@ -199,7 +199,7 @@ func (g *gen) writeBuiltinIOReader(b *buffer, recv *a.Expr, method t.ID, args []
iopPrefix, name, io0Prefix, name, io0Prefix, name)
return nil
case t.IDSkip32Fast:
case t.IDSkipU32Fast:
// Generate a two part expression using the comma operator: "(pointer
// increment, return_empty_struct call)". The final part is a function
// call (to a static inline function) instead of a struct literal, to
@@ -640,7 +640,7 @@ func (g *gen) writeBuiltinQuestionCall(b *buffer, n *a.Expr, depth uint32) error
b.printf(" = *iop_a_src++;\n")
return nil
case t.IDSkip, t.IDSkip32:
case t.IDSkip, t.IDSkipU32:
x := n.Args()[0].AsArg().Value()
if cv := x.ConstValue(); cv != nil && cv.Cmp(one) == 0 {
if err := g.writeCoroSuspPoint(b, false); err != nil {