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
bf373d5c
Commit
bf373d5c
authored
Jan 08, 2019
by
Nicolas Denoyelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove copy operator
parent
caa86419
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
26 deletions
+3
-26
src/excit.c
src/excit.c
+0
-15
src/excit.h
src/excit.h
+3
-11
No files found.
src/excit.c
View file @
bf373d5c
...
...
@@ -201,21 +201,6 @@ int excit_type(excit_t it, enum excit_type_e *type)
return
EXCIT_SUCCESS
;
}
int
excit_copy
(
excit_t
dst
,
const
excit_t
src
)
{
if
(
!
dst
||
!
src
||
!
src
->
func_table
||
src
->
type
!=
dst
->
type
||
src
->
dimension
!=
dst
->
dimension
)
return
-
EXCIT_EINVAL
;
if
(
!
src
->
func_table
->
copy
)
return
-
EXCIT_ENOTSUP
;
dst
->
func_table
=
src
->
func_table
;
dst
->
dimension
=
src
->
dimension
;
return
src
->
func_table
->
copy
(
dst
,
src
);
}
int
excit_next
(
excit_t
it
,
ssize_t
*
indexes
)
{
if
(
!
it
||
!
it
->
func_table
)
...
...
src/excit.h
View file @
bf373d5c
...
...
@@ -198,14 +198,6 @@ excit_t excit_dup(const excit_t it);
*/
void
excit_free
(
excit_t
it
);
/*
* Copy an iterator.
* "dst": the copy destination.
* "src": the iterator to copy
*/
int
excit_copy
(
excit_t
dst
,
const
excit_t
src
);
/*
* Get the type of an iterator
* "it": an iterator.
...
...
@@ -441,11 +433,11 @@ int excit_tleaf_init(excit_t it,
const
ssize_t
*
user_policy
);
/*
* Split a tree at a given level.
* Split a tree at a given level.
The behaviour is different from the generic function excit_split for the split might be sparse.
* "it": a tleaf iterator.
* "level": The level to split.
* "n": The number of slices. n must divide the target level arity.
* "out": an array of n allocated tleaf iterators.
*/
int
tleaf_it_split
_at_level
(
const
excit_t
it
,
const
ssize_t
level
,
const
ssize_t
n
,
excit_t
*
out
);
*/
int
tleaf_it_split
(
const
excit_t
it
,
const
ssize_t
level
,
const
ssize_t
n
,
excit_t
*
out
);
#endif
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