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
9563e445
Commit
9563e445
authored
Sep 08, 2014
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/test_dr: Allow building with mingw32
parent
7c9e7480
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
misc/test_dr.h
misc/test_dr.h
+9
-6
No files found.
misc/test_dr.h
View file @
9563e445
...
...
@@ -20,7 +20,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*****************************************************************************/
#ifdef WIN32
# define PRI64d "I64u"
#else
# define PRI64d "llu"
#endif
#define BOZO_VARS(sname) \
int i_err = 0; \
...
...
@@ -33,7 +37,7 @@
#define BOZO_DOJOB(fname) \
if(!(i_loop_count & 0xffff)) \
fprintf(stdout, "\r iteration count: %22
llu"
, i_loop_count); \
fprintf(stdout, "\r iteration count: %22
"PRI64d
, i_loop_count); \
i_loop_count++; \
p_descriptor = dvbpsi_Gen##fname##Dr(&s_decoded, 0); \
p_new_decoded = dvbpsi_Decode##fname##Dr(p_descriptor);
...
...
@@ -67,7 +71,7 @@
s_decoded.name <<= 1; \
} while(!i_err \
&& (++i < bitcount)); \
fprintf(stdout, "\r iteration count: %22
llu"
, i_loop_count); \
fprintf(stdout, "\r iteration count: %22
"PRI64d
, i_loop_count); \
if(i_err) \
fprintf(stdout, " FAILED !!!\n"); \
else \
...
...
@@ -77,7 +81,7 @@
#define BOZO_check_integer(name, bitcount) \
if(!i_err && (s_decoded.name != p_new_decoded->name)) \
{ \
fprintf(stderr, "\nError: integer %s %
llu -> %llu
\n", #name, \
fprintf(stderr, "\nError: integer %s %
"PRI64d" -> %"PRI64d"
\n", #name, \
(long long unsigned int)s_decoded.name, \
(long long unsigned int)p_new_decoded->name); \
i_err = 1; \
...
...
@@ -100,7 +104,7 @@
#define BOZO_end_boolean(name) \
s_decoded.name += 12; \
} while(!i_err && (s_decoded.name <= 12)); \
fprintf(stdout, "\r iteration count: %22
llu"
, i_loop_count); \
fprintf(stdout, "\r iteration count: %22
"PRI64d
, i_loop_count); \
if(i_err) \
fprintf(stdout, " FAILED !!!\n"); \
else \
...
...
@@ -116,4 +120,3 @@
s_decoded.name, p_new_decoded->name); \
i_err = 1; \
}
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