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
e52eb9b1
Commit
e52eb9b1
authored
Jul 18, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace array filling with a function
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
be76a781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
misc/test_dr.h
misc/test_dr.h
+6
-2
No files found.
misc/test_dr.h
View file @
e52eb9b1
...
...
@@ -129,6 +129,11 @@
#define BOZO_init_array(len_name) \
s_decoded.len_name = 0;
static
void
BOZO_fill_array
(
void
*
a
,
size_t
len
)
{
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
((
uint8_t
*
)
a
)[
i
]
=
rand
();
}
#define BOZO_begin_array(name, len_name, min_size) \
if(!i_err) \
{ \
...
...
@@ -136,8 +141,7 @@
i_loop_count = min_size; \
do \
{ \
for(size_t i = 0 ; i < sizeof(s_decoded.name) ; ++i) \
((uint8_t*)s_decoded.name)[i] = rand(); \
BOZO_fill_array(s_decoded.name, sizeof(s_decoded.name)); \
s_decoded.len_name = i_loop_count;
#define BOZO_end_array(name, max_len) \
...
...
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