mirror of
https://github.com/rwinkhart/sys.git
synced 2026-10-27 03:40:01 -04:00
unix: merge duplicate code in ztypes_linux_*.go
Run mkmerge.go on ztypes_linux_*.go to merge duplicate consts, funcs, and types into ztypes_linux.go Please see https://gist.github.com/jupj/639b5cda305d251161fec2304c27c9b9 for a script to validate these changes. Fixes golang/go#33059 Change-Id: Ic272869fed6bf6bbf3018d3919ae5a6b6bc15bbb Reviewed-on: https://go-review.googlesource.com/c/sys/+/221320 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
1 parent
2f85c7ec1e
commit
5d559ad92b
15 files changed
+2255
-28861
No files matched your search
+1
-1
@@ -563,7 +563,7 @@ func mergeFiles() error {
|
|||||||
os.Setenv("GOARCH", runtime.GOARCH)
|
os.Setenv("GOARCH", runtime.GOARCH)
|
||||||
|
|
||||||
// Merge each of the four type of files
|
// Merge each of the four type of files
|
||||||
for _, ztyp := range []string{"zerrors", "zsyscall", "zsysnum"} {
|
for _, ztyp := range []string{"zerrors", "zsyscall", "zsysnum", "ztypes"} {
|
||||||
cmd := makeCommand("go", "run", "mkmerge.go", "-out", fmt.Sprintf("%s_%s.go", ztyp, GOOS), fmt.Sprintf("%s_%s_*.go", ztyp, GOOS))
|
cmd := makeCommand("go", "run", "mkmerge.go", "-out", fmt.Sprintf("%s_%s.go", ztyp, GOOS), fmt.Sprintf("%s_%s_*.go", ztyp, GOOS))
|
||||||
err := cmd.Run()
|
err := cmd.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user