Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for afterErrorAction (0.32 sec)

  1. src/cmd/link/internal/ld/util.go

    	fmt.Fprintf(os.Stderr, os.Args[0]+": "+format+"\n", a...)
    	nerrors++
    	if *flagH {
    		panic("error")
    	}
    	Exit(2)
    }
    
    // afterErrorAction updates 'nerrors' on error and invokes exit or
    // panics in the proper circumstances.
    func afterErrorAction() {
    	nerrors++
    	if *flagH {
    		panic("error")
    	}
    	if nerrors > 20 {
    		Exitf("too many errors")
    	}
    }
    
    // Errorf logs an error message.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 20:39:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/sym.go

    	"cmd/internal/sys"
    	"cmd/link/internal/loader"
    	"cmd/link/internal/sym"
    	"internal/buildcfg"
    	"log"
    	"runtime"
    )
    
    func linknew(arch *sys.Arch) *Link {
    	ler := loader.ErrorReporter{AfterErrorAction: afterErrorAction}
    	ctxt := &Link{
    		Target:        Target{Arch: arch},
    		version:       sym.SymVerStatic,
    		outSem:        make(chan int, 2*runtime.GOMAXPROCS(0)),
    		Out:           NewOutBuf(arch),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 19:28:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader.go

    			lib.DupTextSyms = nil
    		}
    	}
    
    	return textp
    }
    
    // ErrorReporter is a helper class for reporting errors.
    type ErrorReporter struct {
    	ldr              *Loader
    	AfterErrorAction func()
    }
    
    // Errorf method logs an error message.
    //
    // After each error, the error actions function will be invoked; this
    // will either terminate the link immediately (if -h option given)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
Back to top