Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8b20c588
Commit
8b20c588
authored
Oct 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Introduce wine_dbgstr_fourcc and debugstr_fourcc.
parent
b490890d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
24 deletions
+11
-24
parsing.c
dlls/d3dxof/parsing.c
+0
-9
dmobject.h
dlls/dmusic/dmobject.h
+0
-7
debug.h
include/wine/debug.h
+11
-0
mediatype.c
libs/strmbase/mediatype.c
+0
-8
No files found.
dlls/d3dxof/parsing.c
View file @
8b20c588
...
...
@@ -70,15 +70,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3dxof_parsing);
#define CLSIDFMT "<%08lX-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X>"
/* FOURCC to string conversion for debug messages */
static
const
char
*
debugstr_fourcc
(
DWORD
fourcc
)
{
if
(
!
fourcc
)
return
"'null'"
;
return
wine_dbg_sprintf
(
"
\'
%c%c%c%c
\'
"
,
(
char
)(
fourcc
),
(
char
)(
fourcc
>>
8
),
(
char
)(
fourcc
>>
16
),
(
char
)(
fourcc
>>
24
));
}
static
const
char
*
get_primitive_string
(
DWORD
token
)
{
switch
(
token
)
...
...
dlls/dmusic/dmobject.h
View file @
8b20c588
...
...
@@ -121,10 +121,3 @@ HRESULT WINAPI unimpl_IPersistStream_GetSizeMax(IPersistStream *iface,
const
char
*
debugstr_chunk
(
const
struct
chunk_entry
*
chunk
);
const
char
*
debugstr_dmguid
(
const
GUID
*
id
);
void
dump_DMUS_OBJECTDESC
(
DMUS_OBJECTDESC
*
desc
);
static
inline
const
char
*
debugstr_fourcc
(
DWORD
fourcc
)
{
if
(
!
fourcc
)
return
"''"
;
return
wine_dbg_sprintf
(
"'%c%c%c%c'"
,
(
char
)(
fourcc
),
(
char
)(
fourcc
>>
8
),
(
char
)(
fourcc
>>
16
),
(
char
)(
fourcc
>>
24
));
}
include/wine/debug.h
View file @
8b20c588
...
...
@@ -324,6 +324,16 @@ static inline const char *wine_dbgstr_guid( const GUID *id )
id
->
Data4
[
4
],
id
->
Data4
[
5
],
id
->
Data4
[
6
],
id
->
Data4
[
7
]
);
}
static
inline
const
char
*
wine_dbgstr_fourcc
(
unsigned
int
fourcc
)
{
char
str
[
4
]
=
{
fourcc
,
fourcc
>>
8
,
fourcc
>>
16
,
fourcc
>>
24
};
if
(
!
fourcc
)
return
"''"
;
if
(
isprint
(
str
[
0
]
)
&&
isprint
(
str
[
1
]
)
&&
isprint
(
str
[
2
]
)
&&
isprint
(
str
[
3
]
))
return
wine_dbg_sprintf
(
"'%4s'"
,
str
);
return
wine_dbg_sprintf
(
"0x%08x"
,
fourcc
);
}
static
inline
const
char
*
wine_dbgstr_point
(
const
POINT
*
pt
)
{
if
(
!
pt
)
return
"(null)"
;
...
...
@@ -504,6 +514,7 @@ static inline const char *wine_dbgstr_variant( const VARIANT *v )
static
inline
const
char
*
debugstr_an
(
const
char
*
s
,
int
n
)
{
return
wine_dbgstr_an
(
s
,
n
);
}
static
inline
const
char
*
debugstr_wn
(
const
WCHAR
*
s
,
int
n
)
{
return
wine_dbgstr_wn
(
s
,
n
);
}
static
inline
const
char
*
debugstr_guid
(
const
struct
_GUID
*
id
)
{
return
wine_dbgstr_guid
(
id
);
}
static
inline
const
char
*
debugstr_fourcc
(
unsigned
int
cc
)
{
return
wine_dbgstr_fourcc
(
cc
);
}
static
inline
const
char
*
debugstr_a
(
const
char
*
s
)
{
return
wine_dbgstr_an
(
s
,
-
1
);
}
static
inline
const
char
*
debugstr_w
(
const
WCHAR
*
s
)
{
return
wine_dbgstr_wn
(
s
,
-
1
);
}
...
...
libs/strmbase/mediatype.c
View file @
8b20c588
...
...
@@ -55,14 +55,6 @@ static const char *strmbase_debugstr_guid(const GUID *guid)
return
debugstr_guid
(
guid
);
}
static
const
char
*
debugstr_fourcc
(
DWORD
fourcc
)
{
char
str
[
4
]
=
{
fourcc
,
fourcc
>>
8
,
fourcc
>>
16
,
fourcc
>>
24
};
if
(
isprint
(
str
[
0
])
&&
isprint
(
str
[
1
])
&&
isprint
(
str
[
2
])
&&
isprint
(
str
[
3
]))
return
wine_dbgstr_an
(
str
,
4
);
return
wine_dbg_sprintf
(
"%#lx"
,
fourcc
);
}
void
strmbase_dump_media_type
(
const
AM_MEDIA_TYPE
*
mt
)
{
if
(
!
TRACE_ON
(
quartz
)
||
!
mt
)
return
;
...
...
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