Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
excit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
excit
Commits
a6c0a842
Commit
a6c0a842
authored
Jan 24, 2019
by
Nicolas Denoyelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add static keyword when omitted
parent
c617c134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
src/tleaf.c
src/tleaf.c
+6
-8
No files found.
src/tleaf.c
View file @
a6c0a842
...
...
@@ -13,8 +13,6 @@ static int tleaf_init_with_it(excit_t it,
static
int
tleaf_it_alloc
(
excit_t
it
)
{
if
(
it
==
NULL
||
it
->
data
==
NULL
)
return
-
EXCIT_EINVAL
;
it
->
dimension
=
1
;
struct
tleaf_it_s
*
data_it
=
it
->
data
;
...
...
@@ -123,7 +121,7 @@ static ssize_t tleaf_it_value(struct tleaf_it_s *it)
return
val
;
}
int
tleaf_it_nth
(
const
excit_t
it
,
ssize_t
n
,
ssize_t
*
indexes
)
static
int
tleaf_it_nth
(
const
excit_t
it
,
ssize_t
n
,
ssize_t
*
indexes
)
{
struct
tleaf_it_s
*
data_it
=
it
->
data
;
int
err
=
excit_nth
(
data_it
->
levels
,
n
,
data_it
->
buf
);
...
...
@@ -135,7 +133,7 @@ int tleaf_it_nth(const excit_t it, ssize_t n, ssize_t *indexes)
return
EXCIT_SUCCESS
;
}
int
tleaf_it_peek
(
const
excit_t
it
,
ssize_t
*
value
)
static
int
tleaf_it_peek
(
const
excit_t
it
,
ssize_t
*
value
)
{
struct
tleaf_it_s
*
data_it
=
it
->
data
;
int
err
=
excit_peek
(
data_it
->
levels
,
data_it
->
buf
);
...
...
@@ -147,7 +145,7 @@ int tleaf_it_peek(const excit_t it, ssize_t *value)
return
EXCIT_SUCCESS
;
}
int
tleaf_it_next
(
excit_t
it
,
ssize_t
*
indexes
)
static
int
tleaf_it_next
(
excit_t
it
,
ssize_t
*
indexes
)
{
struct
tleaf_it_s
*
data_it
=
it
->
data
;
int
err
=
excit_next
(
data_it
->
levels
,
data_it
->
buf
);
...
...
@@ -160,7 +158,7 @@ int tleaf_it_next(excit_t it, ssize_t *indexes)
return
EXCIT_SUCCESS
;
}
int
tleaf_it_rank
(
const
excit_t
it
,
const
ssize_t
*
indexes
,
ssize_t
*
n
)
static
int
tleaf_it_rank
(
const
excit_t
it
,
const
ssize_t
*
indexes
,
ssize_t
*
n
)
{
ssize_t
size
;
int
err
;
...
...
@@ -190,7 +188,7 @@ int tleaf_it_rank(const excit_t it, const ssize_t *indexes, ssize_t *n)
return
EXCIT_SUCCESS
;
}
int
tleaf_it_make_levels
(
struct
tleaf_it_s
*
tleaf
,
const
excit_t
*
indexes
,
static
int
tleaf_it_make_levels
(
struct
tleaf_it_s
*
tleaf
,
const
excit_t
*
indexes
,
ssize_t
*
order
,
excit_t
*
levels
)
{
ssize_t
i
;
...
...
@@ -370,7 +368,7 @@ int excit_tleaf_init(excit_t it,
user_policy
,
NULL
,
NULL
);
}
int
tleaf_split_levels
(
excit_t
levels
,
const
ssize_t
depth
,
const
ssize_t
n
,
static
int
tleaf_split_levels
(
excit_t
levels
,
const
ssize_t
depth
,
const
ssize_t
n
,
excit_t
**
out
)
{
*
out
=
malloc
(
sizeof
(
**
out
)
*
n
);
...
...
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