These are the diffs for defs_windows_386.h (and defs_windows_amd64.h)
files generated with current cgo command and proposed changed one:
# diff defs_windows_amd64.h
~/cl9574043/src/pkg/runtime/defs_windows_amd64.h
64,65d63
< struct FloatingSaveArea {
< };
# diff defs_windows_386.h ~/cl9574043/src/pkg/runtime/defs_windows_386.h
74,75d73
< struct M128a {
< };
#
It seems FloatingSaveArea and M128a are ARCH specific. They are not used
directly by our code, but they are embeded in other structs. They are
present in defs_windows.go, because cgo doesn't do recursion to discover
embeded structs.
I suppose, FloatingSaveArea and M128a can be moved into ARCH specific
file like defs_windows_386.go and defs_windows_amd64.go, but I think it
just complicates things more.
I can just abandon this CL altogether. But I need more windows C structs
for net poller, and it bothers me that auto-generation does not work.
Alex
https://codereview.appspot.com/9574043/