- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for lexHeap (0.09 sec)
-
src/cmd/link/internal/ld/heap.go
type lexHeap []loader.Sym func (h *lexHeap) push(ldr *loader.Loader, s loader.Sym) { *h = append(*h, s) // sift up n := len(*h) - 1 for n > 0 { p := (n - 1) / 2 // parent if ldr.SymName((*h)[p]) <= ldr.SymName((*h)[n]) { break } (*h)[n], (*h)[p] = (*h)[p], (*h)[n] n = p } } func (h *lexHeap) pop(ldr *loader.Loader) loader.Sym { r := (*h)[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 16:55:22 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/inittask.go
} var edges []edge // List of packages that are ready to schedule. We use a lexicographic // ordered heap to pick the lexically earliest uninitialized but // inititalizeable package at each step. var h lexHeap // m maps from an inittask symbol for package p to the number of // p's direct imports that have not yet been scheduled. m := map[loader.Sym]int{} // Find all reachable inittask records from the roots.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
src/go/build/constraint/expr_test.go
out := "" for { tok, err := lexHelp(p) if tok == "" && err == nil { break } if out != "" { out += " " } if err != nil { out += "err: " + err.Error() break } out += tok } if out != tt.out { t.Errorf("lex(%q):\nhave %s\nwant %s", tt.in, out, tt.out) } }) } } func lexHelp(p *exprParser) (tok string, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 18 22:36:55 UTC 2021 - 7.6K bytes - Viewed (0)