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
103cfb90
Commit
103cfb90
authored
Nov 14, 2008
by
Andrew Riedi
Committed by
Alexandre Julliard
Nov 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: const WCHAR -> static const WCHAR.
parent
6ec11ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
reg.c
programs/reg/reg.c
+16
-15
No files found.
programs/reg/reg.c
View file @
103cfb90
...
...
@@ -69,7 +69,7 @@ static int reg_message(int msg, ...)
static
int
reg_add
(
WCHAR
*
key_name
,
WCHAR
*
value_name
,
BOOL
value_empty
,
WCHAR
*
type
,
WCHAR
separator
,
WCHAR
*
data
,
BOOL
force
)
{
const
WCHAR
stubW
[]
=
{
'S'
,
'T'
,
'U'
,
'B'
,
' '
,
'A'
,
'D'
,
'D'
,
' '
,
'-'
,
' '
,
'%'
,
's'
,
static
const
WCHAR
stubW
[]
=
{
'S'
,
'T'
,
'U'
,
'B'
,
' '
,
'A'
,
'D'
,
'D'
,
' '
,
'-'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
'\n'
,
0
};
reg_printfW
(
stubW
,
key_name
,
value_name
,
value_empty
,
type
,
data
,
force
);
...
...
@@ -79,8 +79,9 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
static
int
reg_delete
(
WCHAR
*
key_name
,
WCHAR
*
value_name
,
BOOL
value_empty
,
BOOL
value_all
,
BOOL
force
)
{
const
WCHAR
stubW
[]
=
{
'S'
,
'T'
,
'U'
,
'B'
,
' '
,
'D'
,
'E'
,
'L'
,
'E'
,
'T'
,
'E'
,
' '
,
'-'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'd'
,
'\n'
,
0
};
static
const
WCHAR
stubW
[]
=
{
'S'
,
'T'
,
'U'
,
'B'
,
' '
,
'D'
,
'E'
,
'L'
,
'E'
,
'T'
,
'E'
,
' '
,
'-'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'd'
,
'\n'
,
0
};
reg_printfW
(
stubW
,
key_name
,
value_name
,
value_empty
,
value_all
,
force
);
return
1
;
...
...
@@ -89,8 +90,8 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
static
int
reg_query
(
WCHAR
*
key_name
,
WCHAR
*
value_name
,
BOOL
value_empty
,
BOOL
subkey
)
{
const
WCHAR
stubW
[]
=
{
'S'
,
'T'
,
'U'
,
'B'
,
' '
,
'Q'
,
'U'
,
'E'
,
'R'
,
'Y'
,
' '
,
'-
'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'd'
,
'\n'
,
0
};
static
const
WCHAR
stubW
[]
=
{
'S'
,
'T'
,
'U'
,
'B'
,
' '
,
'Q'
,
'U'
,
'E'
,
'R'
,
'Y
'
,
' '
,
'
-'
,
' '
,
'
%'
,
's'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
'd'
,
'\n'
,
0
};
reg_printfW
(
stubW
,
key_name
,
value_name
,
value_empty
,
subkey
);
return
1
;
...
...
@@ -100,16 +101,16 @@ int wmain(int argc, WCHAR *argvW[])
{
int
i
;
const
WCHAR
addW
[]
=
{
'a'
,
'd'
,
'd'
,
0
};
const
WCHAR
deleteW
[]
=
{
'd'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
const
WCHAR
queryW
[]
=
{
'q'
,
'u'
,
'e'
,
'r'
,
'y'
,
0
};
const
WCHAR
slashDW
[]
=
{
'/'
,
'd'
,
0
};
const
WCHAR
slashFW
[]
=
{
'/'
,
'f'
,
0
};
const
WCHAR
slashSW
[]
=
{
'/'
,
's'
,
0
};
const
WCHAR
slashTW
[]
=
{
'/'
,
't'
,
0
};
const
WCHAR
slashVW
[]
=
{
'/'
,
'v'
,
0
};
const
WCHAR
slashVAW
[]
=
{
'/'
,
'v'
,
'a'
,
0
};
const
WCHAR
slashVEW
[]
=
{
'/'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
addW
[]
=
{
'a'
,
'd'
,
'd'
,
0
};
static
const
WCHAR
deleteW
[]
=
{
'd'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
static
const
WCHAR
queryW
[]
=
{
'q'
,
'u'
,
'e'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
slashDW
[]
=
{
'/'
,
'd'
,
0
};
static
const
WCHAR
slashFW
[]
=
{
'/'
,
'f'
,
0
};
static
const
WCHAR
slashSW
[]
=
{
'/'
,
's'
,
0
};
static
const
WCHAR
slashTW
[]
=
{
'/'
,
't'
,
0
};
static
const
WCHAR
slashVW
[]
=
{
'/'
,
'v'
,
0
};
static
const
WCHAR
slashVAW
[]
=
{
'/'
,
'v'
,
'a'
,
0
};
static
const
WCHAR
slashVEW
[]
=
{
'/'
,
'v'
,
'e'
,
0
};
if
(
argc
<
2
)
{
...
...
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