Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
excit
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
excit
Commits
7ec342e1
Commit
7ec342e1
authored
Jan 10, 2019
by
Nicolas Denoyelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last changes correctingan error were not committed
parent
a5974865
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
tleaf.c
src/tleaf.c
+9
-4
No files found.
src/tleaf.c
View file @
7ec342e1
...
...
@@ -42,11 +42,10 @@ static void tleaf_it_free(excit_t it)
static
int
tleaf_it_size
(
const
excit_t
it
,
ssize_t
*
size
)
{
struct
tleaf_it_s
*
data_it
=
it
->
data
;
ssize_t
i
,
s
=
1
;
int
err
=
excit_size
(
data_it
->
levels
,
size
)
;
for
(
i
=
0
;
i
<
data_it
->
depth
;
i
++
)
s
*=
data_it
->
arities
[
i
];
*
size
=
data_it
->
depth
?
s
:
0
;
if
(
err
!=
EXCIT_SUCCESS
)
return
err
;
return
EXCIT_SUCCESS
;
}
...
...
@@ -395,6 +394,12 @@ int tleaf_it_split(const excit_t it, const ssize_t depth,
goto
error_with_levels
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
out
[
i
]
=
excit_alloc
(
EXCIT_TLEAF
);
if
(
out
==
NULL
)
{
err
=
-
EXCIT_ENOMEM
;
goto
error_with_levels_inverse
;
}
err
=
tleaf_init_with_it
(
out
[
i
],
data_it
->
depth
+
1
,
data_it
->
arities
,
...
...
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