Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
libdvbpsi
Commits
7e62d37d
Commit
7e62d37d
authored
Jul 19, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move the actual compare code to BOZO_check_carray
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
d7ca3502
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
misc/dr.xsl
misc/dr.xsl
+1
-3
misc/test_dr.c
misc/test_dr.c
+3
-9
misc/test_dr.h
misc/test_dr.h
+4
-0
No files found.
misc/dr.xsl
View file @
7e62d37d
...
...
@@ -174,9 +174,7 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
i_loop_count = 0;
BOZO_begin_array(
<xsl:value-of
select=
"@name"
/>
)
BOZO_DOJOB(
<xsl:value-of
select=
"../@fname"
/>
);
i_err = memcmp(s_decoded.
<xsl:value-of
select=
"@name"
/>
,
p_new_decoded->
<xsl:value-of
select=
"@name"
/>
,
sizeof(s_decoded.
<xsl:value-of
select=
"@name"
/>
));
BOZO_check_carray(
<xsl:value-of
select=
"@name"
/>
)
BOZO_end_array
</xsl:template>
...
...
misc/test_dr.c
View file @
7e62d37d
...
...
@@ -1919,9 +1919,7 @@ static int main_short_event_0(void)
i_loop_count
=
0
;
BOZO_begin_array
(
i_iso_639_code
)
BOZO_DOJOB
(
ShortEvent
);
i_err
=
memcmp
(
s_decoded
.
i_iso_639_code
,
p_new_decoded
->
i_iso_639_code
,
sizeof
(
s_decoded
.
i_iso_639_code
));
BOZO_check_carray
(
i_iso_639_code
)
BOZO_end_array
/* check i_event_name */
...
...
@@ -1959,9 +1957,7 @@ static int main_short_event_1(void)
i_loop_count
=
0
;
BOZO_begin_array
(
i_iso_639_code
)
BOZO_DOJOB
(
ShortEvent
);
i_err
=
memcmp
(
s_decoded
.
i_iso_639_code
,
p_new_decoded
->
i_iso_639_code
,
sizeof
(
s_decoded
.
i_iso_639_code
));
BOZO_check_carray
(
i_iso_639_code
)
BOZO_end_array
/* check i_text */
...
...
@@ -1998,9 +1994,7 @@ static int main_short_event_2(void)
i_loop_count
=
0
;
BOZO_begin_array
(
i_iso_639_code
)
BOZO_DOJOB
(
ShortEvent
);
i_err
=
memcmp
(
s_decoded
.
i_iso_639_code
,
p_new_decoded
->
i_iso_639_code
,
sizeof
(
s_decoded
.
i_iso_639_code
));
BOZO_check_carray
(
i_iso_639_code
)
BOZO_end_array
/* check i_text */
...
...
misc/test_dr.h
View file @
7e62d37d
...
...
@@ -166,6 +166,10 @@ static void BOZO_fill_array(void *a, size_t len)
i_err = 1; \
}
#define BOZO_check_carray(name) \
i_err = memcmp(s_decoded.name, p_new_decoded->name, \
sizeof(s_decoded.name));
#define BOZO_check_array_gen(name, len_name) \
else if( !i_err \
&& (memcmp(s_decoded.name, p_new_decoded->name, \
...
...
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