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
cf2b9f09
Commit
cf2b9f09
authored
Jun 27, 2005
by
Andreas Mohr
Committed by
Alexandre Julliard
Jun 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constify wcmd.
parent
e452c246
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
builtins.c
programs/wcmd/builtins.c
+3
-3
wcmdmain.c
programs/wcmd/wcmdmain.c
+1
-1
No files found.
programs/wcmd/builtins.c
View file @
cf2b9f09
...
@@ -105,7 +105,7 @@ DWORD count;
...
@@ -105,7 +105,7 @@ DWORD count;
WIN32_FIND_DATA
fd
;
WIN32_FIND_DATA
fd
;
HANDLE
hff
;
HANDLE
hff
;
BOOL
force
,
status
;
BOOL
force
,
status
;
static
const
char
*
overwrite
=
"Overwrite file (Y/N)?"
;
static
const
char
overwrite
[]
=
"Overwrite file (Y/N)?"
;
char
string
[
8
],
outpath
[
MAX_PATH
],
inpath
[
MAX_PATH
],
*
infile
;
char
string
[
8
],
outpath
[
MAX_PATH
],
inpath
[
MAX_PATH
],
*
infile
;
if
((
strchr
(
param1
,
'*'
)
!=
NULL
)
&&
(
strchr
(
param1
,
'%'
)
!=
NULL
))
{
if
((
strchr
(
param1
,
'*'
)
!=
NULL
)
&&
(
strchr
(
param1
,
'%'
)
!=
NULL
))
{
...
@@ -213,7 +213,7 @@ char *p;
...
@@ -213,7 +213,7 @@ char *p;
void
WCMD_echo
(
const
char
*
command
)
{
void
WCMD_echo
(
const
char
*
command
)
{
static
const
char
*
eon
=
"Echo is ON
\n
"
,
*
eoff
=
"Echo is OFF
\n
"
;
static
const
char
eon
[]
=
"Echo is ON
\n
"
,
eoff
[]
=
"Echo is OFF
\n
"
;
int
count
;
int
count
;
if
((
command
[
0
]
==
'.'
)
&&
(
command
[
1
]
==
0
))
{
if
((
command
[
0
]
==
'.'
)
&&
(
command
[
1
]
==
0
))
{
...
@@ -976,7 +976,7 @@ DWORD count;
...
@@ -976,7 +976,7 @@ DWORD count;
void
WCMD_verify
(
char
*
command
)
{
void
WCMD_verify
(
char
*
command
)
{
static
const
char
*
von
=
"Verify is ON
\n
"
,
*
voff
=
"Verify is OFF
\n
"
;
static
const
char
von
[]
=
"Verify is ON
\n
"
,
voff
[]
=
"Verify is OFF
\n
"
;
int
count
;
int
count
;
count
=
strlen
(
command
);
count
=
strlen
(
command
);
...
...
programs/wcmd/wcmdmain.c
View file @
cf2b9f09
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "ntstatus.h"
#include "ntstatus.h"
#include "wcmd.h"
#include "wcmd.h"
const
char
*
inbuilt
[]
=
{
"ATTRIB"
,
"CALL"
,
"CD"
,
"CHDIR"
,
"CLS"
,
"COPY"
,
"CTTY"
,
const
char
*
const
inbuilt
[]
=
{
"ATTRIB"
,
"CALL"
,
"CD"
,
"CHDIR"
,
"CLS"
,
"COPY"
,
"CTTY"
,
"DATE"
,
"DEL"
,
"DIR"
,
"ECHO"
,
"ERASE"
,
"FOR"
,
"GOTO"
,
"DATE"
,
"DEL"
,
"DIR"
,
"ECHO"
,
"ERASE"
,
"FOR"
,
"GOTO"
,
"HELP"
,
"IF"
,
"LABEL"
,
"MD"
,
"MKDIR"
,
"MOVE"
,
"PATH"
,
"PAUSE"
,
"HELP"
,
"IF"
,
"LABEL"
,
"MD"
,
"MKDIR"
,
"MOVE"
,
"PATH"
,
"PAUSE"
,
"PROMPT"
,
"REM"
,
"REN"
,
"RENAME"
,
"RD"
,
"RMDIR"
,
"SET"
,
"SHIFT"
,
"PROMPT"
,
"REM"
,
"REN"
,
"RENAME"
,
"RD"
,
"RMDIR"
,
"SET"
,
"SHIFT"
,
...
...
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