forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HaxeFoundation#23 go lint code improvement
- Loading branch information
Showing
28 changed files
with
481 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Package os is not implemented for TARDIS Go, this code is only as a TEST for OSX | ||
package os | ||
|
||
// dummy | ||
func sigpipe() { | ||
panic("os.sigpipe() NOT IMPLEMENTED") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Package syscall is not implemented for TARDIS Go, this code is a non-functioning TEST, only for OSX | ||
package syscall | ||
|
||
import host "syscall" | ||
|
||
// Syscall unimplemented | ||
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err host.Errno) { | ||
return 0, 0, host.EBADARCH | ||
} | ||
|
||
// Syscall6 unimplemented | ||
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err host.Errno) { | ||
return 0, 0, host.EBADARCH | ||
} | ||
|
||
// RawSyscall unimplemented | ||
func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err host.Errno) { | ||
return 0, 0, host.EBADARCH | ||
} | ||
|
||
// RawSyscall6 unimplemented | ||
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err host.Errno) { | ||
return 0, 0, host.EBADARCH | ||
} | ||
|
||
// setenv_c is provided by the runtime, but is a no-op if cgo isn't | ||
// loaded. | ||
func setenv_c(k, v string) {} | ||
|
||
// should be implemented in runtime package | ||
func runtime_BeforeFork() { | ||
panic("syscall.runtime_BeforeFork() NOT IMPLEMENTED") | ||
} | ||
func runtime_AfterFork() { | ||
panic("syscall.runtime_AfterFork() NOT IMPLEMENTED") | ||
} |
Oops, something went wrong.