Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
6342560d
Commit
6342560d
authored
Sep 30, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cf3511fb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
wcfs/internal/xbtree/blib/rangemap.go.in
wcfs/internal/xbtree/blib/rangemap.go.in
+2
-2
wcfs/internal/xbtree/blib/rangemap_test.go
wcfs/internal/xbtree/blib/rangemap_test.go
+1
-1
wcfs/internal/xbtree/blib/zrangemap_str.go
wcfs/internal/xbtree/blib/zrangemap_str.go
+2
-2
wcfs/internal/xbtree/blib/zrangemap_void.go
wcfs/internal/xbtree/blib/zrangemap_void.go
+2
-2
No files found.
wcfs/internal/xbtree/blib/rangemap.go.in
View file @
6342560d
...
@@ -25,8 +25,8 @@ import (
...
@@ -25,8 +25,8 @@ import (
"sort"
"sort"
)
)
const
traceRangeMap
=
tru
e
const
traceRangeMap
=
fals
e
const
debugRangeMap
=
tru
e
const
debugRangeMap
=
fals
e
//
RangedMap
is
Key
->
VALUE
map
with
adjacent
keys
mapped
to
the
same
value
coalesced
into
Ranges
.
//
RangedMap
is
Key
->
VALUE
map
with
adjacent
keys
mapped
to
the
same
value
coalesced
into
Ranges
.
//
//
...
...
wcfs/internal/xbtree/blib/rangemap_test.go
View file @
6342560d
...
@@ -81,7 +81,7 @@ func TestRangedMap(t *testing.T) {
...
@@ -81,7 +81,7 @@ func TestRangedMap(t *testing.T) {
// X creates RangedMapEntry{v, [lo,hi)}
// X creates RangedMapEntry{v, [lo,hi)}
X
:=
func
(
lo
,
hi
Key
,
v
string
)
RangedMapEntry
{
X
:=
func
(
lo
,
hi
Key
,
v
string
)
RangedMapEntry
{
hi_
:=
hi
hi_
:=
hi
if
hi_
!=
n
oo
{
if
hi_
!=
oo
{
hi_
--
hi_
--
}
}
return
RangedMapEntry
{
v
,
KeyRange
{
lo
,
hi_
}}
return
RangedMapEntry
{
v
,
KeyRange
{
lo
,
hi_
}}
...
...
wcfs/internal/xbtree/blib/zrangemap_str.go
View file @
6342560d
...
@@ -27,8 +27,8 @@ import (
...
@@ -27,8 +27,8 @@ import (
"sort"
"sort"
)
)
const
trace_RangedMap_str
=
tru
e
const
trace_RangedMap_str
=
fals
e
const
debug_RangedMap_str
=
tru
e
const
debug_RangedMap_str
=
fals
e
// _RangedMap_str is Key->string map with adjacent keys mapped to the same value coalesced into Ranges.
// _RangedMap_str is Key->string map with adjacent keys mapped to the same value coalesced into Ranges.
//
//
...
...
wcfs/internal/xbtree/blib/zrangemap_void.go
View file @
6342560d
...
@@ -27,8 +27,8 @@ import (
...
@@ -27,8 +27,8 @@ import (
"sort"
"sort"
)
)
const
trace_RangedMap_void
=
tru
e
const
trace_RangedMap_void
=
fals
e
const
debug_RangedMap_void
=
tru
e
const
debug_RangedMap_void
=
fals
e
// _RangedMap_void is Key->void map with adjacent keys mapped to the same value coalesced into Ranges.
// _RangedMap_void is Key->void map with adjacent keys mapped to the same value coalesced into Ranges.
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment