mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Generate "static" for private functions.
This commit is contained in:
1 parent
9ebcd54d43
commit
a36535ec6d
3 files changed
+44
-34
No files matched your search
@@ -65,6 +65,10 @@ func (g *gen) funcCName(n *a.Func) string {
|
||||
}
|
||||
|
||||
func (g *gen) writeFuncSignature(b *buffer, n *a.Func) error {
|
||||
if !n.Public() {
|
||||
b.writes("static ")
|
||||
}
|
||||
|
||||
// TODO: write n's return values.
|
||||
if n.Suspendible() {
|
||||
b.printf("%sstatus ", g.pkgPrefix)
|
||||
|
||||
Reference in new issue
Block a user