diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-11 12:16:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-11 12:16:49 -0400 |
| commit | 732a6db368c3387488f458d642354e442e21f7c2 (patch) | |
| tree | 0d8bb30e408e0093fd6dfe379aacf90af6648244 | |
| parent | 294cb8d166d5e5d0f5a18ce6c785ddc2692a939a (diff) | |
More zwinconstgen.go output refinement.
| -rw-r--r-- | redo/zwinconstgen.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/redo/zwinconstgen.go b/redo/zwinconstgen.go index a6faf0a..c994da3 100644 --- a/redo/zwinconstgen.go +++ b/redo/zwinconstgen.go @@ -152,6 +152,15 @@ func main() { } fmt.Fprintf(buf, "}\n") {{end}} + + // let's generate names for window procedure types + fmt.Fprintf(buf, "\n") + fmt.Fprintf(buf, "type t_UINT %s\n", winName(reflect.TypeOf(C.UINT(0)))) + fmt.Fprintf(buf, "type t_WPARAM %s\n", winName(reflect.TypeOf(C.WPARAM(0)))) + fmt.Fprintf(buf, "type t_LPARAM %s\n", winName(reflect.TypeOf(C.LPARAM(0)))) + fmt.Fprintf(buf, "type t_LRESULT %s\n", winName(reflect.TypeOf(C.LRESULT(0)))) + + // and finally done res, err := format.Source(buf.Bytes()) if err != nil { panic(err.Error() + "\n" + string(buf.Bytes())) } fmt.Printf("%s", res) |
