Remove trailing whitespace from generated c code

This commit is contained in:
Max Brunsfeld 2014-03-29 19:00:31 -07:00
parent 7c502e5b58
commit 8e1b78ca8e
6 changed files with 5831 additions and 6085 deletions

View file

@ -16,7 +16,7 @@ func z() {}
==========================================
parses complex types
==========================================
package trivial
package main
type x *struct {
field1 []int64
@ -37,6 +37,7 @@ type x *struct {
parses functions arguments
============================================
package main
func oneArg(arg1 interface{}) {}
func argsOfSameType(arg1, arg2 string) {}
func argsOfDifferentTypes() (arg1 string, arg2 int64) {}
@ -51,6 +52,7 @@ func argsOfDifferentTypes() (arg1 string, arg2 int64) {}
parses functions with unnamed return values
============================================
package main
func oneReturnValue() string {}
func multipleReturnValues() (string, int64, error) {}
---
@ -65,6 +67,7 @@ func multipleReturnValues() (string, int64, error) {}
parses functions with named return values
============================================
package main
func oneReturnValue() (result string) {}
func multipleReturnValues() (result string, count int64, err error) {}
---