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
de7841b2
Commit
de7841b2
authored
Nov 21, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Move builtins list to builtins.c.
parent
9990f6c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
60 deletions
+57
-60
builtins.c
programs/cmd/builtins.c
+56
-4
wcmd.h
programs/cmd/wcmd.h
+0
-3
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-53
No files found.
programs/cmd/builtins.c
View file @
de7841b2
...
...
@@ -41,19 +41,71 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
cmd
);
static
struct
env_stack
*
saved_environment
;
struct
env_stack
*
pushd_directories
;
extern
HINSTANCE
hinst
;
extern
WCHAR
inbuilt
[][
10
];
extern
int
defaultColor
;
extern
BOOL
echo_mode
;
extern
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
BATCH_CONTEXT
*
context
;
extern
DWORD
errorlevel
;
static
struct
env_stack
*
saved_environment
;
struct
env_stack
*
pushd_directories
;
static
BOOL
verify_mode
=
FALSE
;
const
WCHAR
inbuilt
[][
10
]
=
{
{
'C'
,
'A'
,
'L'
,
'L'
,
'\0'
},
{
'C'
,
'D'
,
'\0'
},
{
'C'
,
'H'
,
'D'
,
'I'
,
'R'
,
'\0'
},
{
'C'
,
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
,
'L'
,
'\0'
},
{
'E'
,
'N'
,
'D'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'\0'
},
{
'S'
,
'E'
,
'T'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'\0'
},
{
'P'
,
'U'
,
'S'
,
'H'
,
'D'
,
'\0'
},
{
'P'
,
'O'
,
'P'
,
'D'
,
'\0'
},
{
'A'
,
'S'
,
'S'
,
'O'
,
'C'
,
'\0'
},
{
'C'
,
'O'
,
'L'
,
'O'
,
'R'
,
'\0'
},
{
'F'
,
'T'
,
'Y'
,
'P'
,
'E'
,
'\0'
},
{
'M'
,
'O'
,
'R'
,
'E'
,
'\0'
},
{
'C'
,
'H'
,
'O'
,
'I'
,
'C'
,
'E'
,
'\0'
},
{
'E'
,
'X'
,
'I'
,
'T'
,
'\0'
}
};
static
const
WCHAR
externals
[][
10
]
=
{
{
'A'
,
'T'
,
'T'
,
'R'
,
'I'
,
'B'
,
'\0'
},
{
'X'
,
'C'
,
'O'
,
'P'
,
'Y'
,
'\0'
}
};
const
WCHAR
dotW
[]
=
{
'.'
,
'\0'
};
const
WCHAR
dotdotW
[]
=
{
'.'
,
'.'
,
'\0'
};
const
WCHAR
nullW
[]
=
{
'\0'
};
...
...
programs/cmd/wcmd.h
View file @
de7841b2
...
...
@@ -215,9 +215,6 @@ typedef struct _DIRECTORY_STACK
/* Must be last in list */
#define WCMD_EXIT 44
#define NUM_EXTERNALS 2
extern
const
WCHAR
externals
[
NUM_EXTERNALS
][
10
];
/* Some standard messages */
extern
const
WCHAR
newline
[];
extern
const
WCHAR
space
[];
...
...
programs/cmd/wcmdmain.c
View file @
de7841b2
...
...
@@ -31,59 +31,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
cmd
);
const
WCHAR
inbuilt
[][
10
]
=
{
{
'C'
,
'A'
,
'L'
,
'L'
,
'\0'
},
{
'C'
,
'D'
,
'\0'
},
{
'C'
,
'H'
,
'D'
,
'I'
,
'R'
,
'\0'
},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'V'
,
'O'
,
'L'
,
'\0'
},
{
'E'
,
'N'
,
'D'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'\0'
},
{
'S'
,
'E'
,
'T'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'\0'
},
{
'P'
,
'U'
,
'S'
,
'H'
,
'D'
,
'\0'
},
{
'P'
,
'O'
,
'P'
,
'D'
,
'\0'
},
{
'A'
,
'S'
,
'S'
,
'O'
,
'C'
,
'\0'
},
{
'C'
,
'O'
,
'L'
,
'O'
,
'R'
,
'\0'
},
{
'F'
,
'T'
,
'Y'
,
'P'
,
'E'
,
'\0'
},
{
'M'
,
'O'
,
'R'
,
'E'
,
'\0'
},
{
'C'
,
'H'
,
'O'
,
'I'
,
'C'
,
'E'
,
'\0'
},
{
'E'
,
'X'
,
'I'
,
'T'
,
'\0'
}
};
const
WCHAR
externals
[
NUM_EXTERNALS
][
10
]
=
{
{
'A'
,
'T'
,
'T'
,
'R'
,
'I'
,
'B'
,
'\0'
},
{
'X'
,
'C'
,
'O'
,
'P'
,
'Y'
,
'\0'
}
};
extern
WCHAR
inbuilt
[][
10
];
HINSTANCE
hinst
;
DWORD
errorlevel
;
int
defaultColor
=
7
;
...
...
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