- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for badexit (0.1 sec)
-
src/runtime/ehooks_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/runtime/testdata/testexithooks/testexithooks.go
_ "unsafe" ) var modeflag = flag.String("mode", "", "mode to run in") func main() { flag.Parse() switch *modeflag { case "simple": testSimple() case "goodexit": testGoodExit() case "badexit": testBadExit() case "panics": testPanics() case "callsexit": testHookCallsExit() case "exit2": testExit2() default: panic("unknown mode") } } func testSimple() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/covdata/covdata.go
var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value") var matchpkg func(name string) bool var atExitFuncs []func() func atExit(f func()) { atExitFuncs = append(atExitFuncs, f) } func Exit(code int) { for i := len(atExitFuncs) - 1; i >= 0; i-- { f := atExitFuncs[i] atExitFuncs = atExitFuncs[:i] f() } os.Exit(code) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
return MakePos(n.Pos().Base(), 1, 1) // declarations // case *ImportDecl: // case *ConstDecl: // case *TypeDecl: // case *VarDecl: // case *FuncDecl: // expressions // case *BadExpr: // case *Name: // case *BasicLit: case *CompositeLit: if n.Type != nil { m = n.Type continue } return n.Pos() case *KeyValueExpr: m = n.Key // case *FuncLit:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
} } } else { msg = "mixed named and unnamed parameters" } p.syntaxErrorAt(errPos, msg) } } return } func (p *parser) badExpr() *BadExpr { b := new(BadExpr) b.pos = p.pos() return b } // ---------------------------------------------------------------------------- // Statements
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
if ctxt.Debugvlog > 0 { // dump symbol info on crash defer func() { ctxt.loader.Dump() }() } if ctxt.Debugvlog > 1 { // dump symbol info on error AtExit(func() { if nerrors > 0 { ctxt.loader.Dump() } }) } switch *flagHeadType { case "": case "windowsgui": ctxt.HeadType = objabi.Hwindows windowsgui = true default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/go/ast/walk.go
Walk(v, n.Type) } if n.Tag != nil { Walk(v, n.Tag) } if n.Comment != nil { Walk(v, n.Comment) } case *FieldList: walkList(v, n.List) // Expressions case *BadExpr, *Ident, *BasicLit: // nothing to do case *Ellipsis: if n.Elt != nil { Walk(v, n.Elt) } case *FuncLit: Walk(v, n.Type) Walk(v, n.Body) case *CompositeLit:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/go/internal/base/base.go
// it is a documentation pseudo-command such as importpath. func (c *Command) Runnable() bool { return c.Run != nil } var atExitFuncs []func() func AtExit(f func()) { atExitFuncs = append(atExitFuncs, f) } func Exit() { for _, f := range atExitFuncs { f() } os.Exit(exitStatus) } func Fatalf(format string, args ...any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/dist/build.go
obj := pathf("%s/pkg/obj", goroot) if !isdir(obj) { xmkdir(obj) } xatexit(func() { xremove(obj) }) // Create build cache directory. objGobuild := pathf("%s/pkg/obj/go-build", goroot) if rebuildall { xremoveall(objGobuild) } xmkdirall(objGobuild) xatexit(func() { xremoveall(objGobuild) }) // Create directory for bootstrap versions of standard library .a files.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/cmd/dist/buildtool.go
// We could use a temporary directory outside $GOROOT instead, // but it is easier to debug on failure if the files are in a known location. workspace := pathf("%s/pkg/bootstrap", goroot) xremoveall(workspace) xatexit(func() { xremoveall(workspace) }) base := pathf("%s/src/bootstrap", workspace) xmkdirall(base) // Copy source code into $GOROOT/pkg/bootstrap and rewrite import paths.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 23:29:41 UTC 2024 - 11.5K bytes - Viewed (0)