Use go:generate to create syscall_windows.go

This dramatically improves maintainability of generated files.

This will be eventually implemented on other generated files as well.
This commit is contained in:
Cristian Maglie
2016-10-13 21:52:13 +02:00
parent 50993cc77b
commit b93c8f2fea
4 changed files with 879 additions and 4 deletions

View File

@@ -1,18 +1,19 @@
// go build mksyscall_windows.go && ./mksyscall_windows serial_windows.go
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT
package serial
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
var (
modadvapi32 = syscall.NewLazyDLL("advapi32.dll")
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
modadvapi32 = windows.NewLazySystemDLL("advapi32.dll")
modkernel32 = windows.NewLazySystemDLL("kernel32.dll")
procRegEnumValueW = modadvapi32.NewProc("RegEnumValueW")
procGetCommState = modkernel32.NewProc("GetCommState")