Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
718adc91
Commit
718adc91
authored
Mar 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Make headers guards compatible with midl.
parent
af2eba24
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
21 deletions
+6
-21
audioclient.idl
include/audioclient.idl
+0
-5
audiopolicy.idl
include/audiopolicy.idl
+0
-5
devicetopology.idl
include/devicetopology.idl
+0
-5
htmlhelp.h
include/htmlhelp.h
+2
-2
header.c
tools/widl/header.c
+3
-3
widl.c
tools/widl/widl.c
+1
-1
No files found.
include/audioclient.idl
View file @
718adc91
...
...
@@ -19,9 +19,6 @@
*
*/
cpp_quote
(
"#ifndef __audioclient_h__"
)
cpp_quote
(
"#define __audioclient_h__"
)
import
"wtypes.idl"
;
import
"unknwn.idl"
;
import
"audiosessiontypes.h"
;
...
...
@@ -322,5 +319,3 @@ cpp_quote("#define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x20)")
cpp_quote("
#
define
AUDCLNT_S_BUFFER_EMPTY
AUDCLNT_SUCCESS
(
0
x1
)
")
cpp_quote("
#
define
AUDCLNT_S_THREAD_ALREADY_REGISTERED
AUDCLNT_SUCCESS
(
0
x2
)
")
cpp_quote("
#
define
AUDCLNT_S_POSITION_STALLED
AUDCLNT_SUCCESS
(
0
x3
)
")
cpp_quote("
#
endif
/*
__audioclient_h__
*/
")
include/audiopolicy.idl
View file @
718adc91
...
...
@@ -19,9 +19,6 @@
*
*/
cpp_quote
(
"#ifndef __audiopolicy_h__"
)
cpp_quote
(
"#define __audiopolicy_h__"
)
import
"oaidl.idl"
;
import
"ocidl.idl"
;
import
"propidl.idl"
;
...
...
@@ -241,5 +238,3 @@ interface IAudioSessionManager2 : IAudioSessionManager
[
in
]
IAudioVolumeDuckNotification
*
duckNotification
)
;
}
;
cpp_quote
(
"#endif /*__audiopolicy_h__*/"
)
include/devicetopology.idl
View file @
718adc91
...
...
@@ -19,9 +19,6 @@
*
*/
cpp_quote
(
"#ifndef __devicetopology_h__"
)
cpp_quote
(
"#define __devicetopology_h__"
)
interface
IPart
;
interface
IControlInterface
;
interface
IDeviceTopology
;
...
...
@@ -737,5 +734,3 @@ library DevTopologyLib
interface
IDeviceTopology
;
}
}
cpp_quote
(
"#endif /*__devicetopology_h__*/"
)
include/htmlhelp.h
View file @
718adc91
...
...
@@ -435,7 +435,7 @@ typedef enum tagHH_GPROPID {
HH_GPROPID_CONTENT_LANGUAGE
=
5
}
HH_GPROPID
;
#ifdef __
WIDL_OAIDL_H
#ifdef __
oaidl_h__
typedef
struct
tagHH_GLOBAL_PROPERTY
{
...
...
@@ -443,7 +443,7 @@ typedef struct tagHH_GLOBAL_PROPERTY
VARIANT
var
;
}
HH_GLOBAL_PROPERTY
;
#endif
/* __
WIDL_OAIDL_H
*/
#endif
/* __
oaidl_h__
*/
#ifdef __cplusplus
}
...
...
tools/widl/header.c
View file @
718adc91
...
...
@@ -1371,8 +1371,8 @@ void write_header(const statement_list_t *stmts)
fprintf
(
header
,
"#include <ole2.h>
\n
"
);
fprintf
(
header
,
"#endif
\n\n
"
);
fprintf
(
header
,
"#ifndef __
WIDL_%s
\n
"
,
header_token
);
fprintf
(
header
,
"#define __
WIDL_%s
\n\n
"
,
header_token
);
fprintf
(
header
,
"#ifndef __
%s__
\n
"
,
header_token
);
fprintf
(
header
,
"#define __
%s__
\n\n
"
,
header_token
);
fprintf
(
header
,
"/* Forward declarations */
\n\n
"
);
write_forward_decls
(
header
,
stmts
);
...
...
@@ -1394,7 +1394,7 @@ void write_header(const statement_list_t *stmts)
fprintf
(
header
,
"
\n
"
);
end_cplusplus_guard
(
header
);
fprintf
(
header
,
"#endif /* __
WIDL_%s
*/
\n
"
,
header_token
);
fprintf
(
header
,
"#endif /* __
%s__
*/
\n
"
,
header_token
);
fclose
(
header
);
}
tools/widl/widl.c
View file @
718adc91
...
...
@@ -197,7 +197,7 @@ static char *make_token(const char *name)
token
=
xstrdup
(
name
);
for
(
i
=
0
;
token
[
i
];
i
++
)
{
if
(
!
isalnum
(
token
[
i
]))
token
[
i
]
=
'_'
;
else
token
[
i
]
=
to
upp
er
(
token
[
i
]);
else
token
[
i
]
=
to
low
er
(
token
[
i
]);
}
return
token
;
}
...
...
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