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
c6747d57
Commit
c6747d57
authored
Aug 30, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Constify some data.
parent
7d73123d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
typelib.c
tools/widl/typelib.c
+3
-2
widl.c
tools/widl/widl.c
+3
-3
No files found.
tools/widl/typelib.c
View file @
c6747d57
...
...
@@ -103,7 +103,7 @@ int is_array(const type_t *t)
/* List of oleauto types that should be recognized by name.
* (most of) these seem to be intrinsic types in mktyplib. */
static
struct
oatype
{
static
const
struct
oatype
{
const
char
*
kw
;
unsigned
short
vt
;
}
oatypes
[]
=
{
...
...
@@ -129,7 +129,8 @@ static int kw_cmp_func(const void *s1, const void *s2)
static
unsigned
short
builtin_vt
(
const
type_t
*
t
)
{
const
char
*
kw
=
t
->
name
;
struct
oatype
key
,
*
kwp
;
struct
oatype
key
;
const
struct
oatype
*
kwp
;
key
.
kw
=
kw
;
#ifdef KW_BSEARCH
kwp
=
bsearch
(
&
key
,
oatypes
,
NTYPES
,
sizeof
(
oatypes
[
0
]),
kw_cmp_func
);
...
...
tools/widl/widl.c
View file @
c6747d57
...
...
@@ -49,7 +49,7 @@
/* O = generate interpreted stubs */
/* w = select win16/win32 output (?) */
static
char
usage
[]
=
static
c
onst
c
har
usage
[]
=
"Usage: widl [options...] infile.idl
\n
"
" -c Generate client stub
\n
"
" -C file Name of client stub file (default is infile_c.c)
\n
"
...
...
@@ -133,9 +133,9 @@ enum {
PREFIX_SERVER_OPTION
};
static
const
char
*
short_options
=
static
const
char
short_options
[]
=
"cC:d:D:EhH:I:NpP:sS:tT:uU:VW"
;
static
struct
option
long_options
[]
=
{
static
const
struct
option
long_options
[]
=
{
{
"oldnames"
,
no_argument
,
0
,
OLDNAMES_OPTION
},
{
"prefix-all"
,
required_argument
,
0
,
PREFIX_ALL_OPTION
},
{
"prefix-client"
,
required_argument
,
0
,
PREFIX_CLIENT_OPTION
},
...
...
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