cmd: Move externals list at the same place as the builtins one so it's easier to known how a command is implemented.
This commit is contained in:
parent
661c9c1c2c
commit
faa23d2a16
@ -67,11 +67,6 @@ static const WCHAR parmY[] = {'/','Y','\0'};
|
|||||||
static const WCHAR parmNoY[] = {'/','-','Y','\0'};
|
static const WCHAR parmNoY[] = {'/','-','Y','\0'};
|
||||||
static const WCHAR nullW[] = {'\0'};
|
static const WCHAR nullW[] = {'\0'};
|
||||||
|
|
||||||
const WCHAR externals[][10] = {
|
|
||||||
{'A','T','T','R','I','B','\0'},
|
|
||||||
{'X','C','O','P','Y','\0'}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* WCMD_ask_confirm
|
* WCMD_ask_confirm
|
||||||
*
|
*
|
||||||
@ -1335,7 +1330,7 @@ void WCMD_give_help (const WCHAR *command) {
|
|||||||
WCMD_output_asis (WCMD_LoadMessage(WCMD_ALLHELP));
|
WCMD_output_asis (WCMD_LoadMessage(WCMD_ALLHELP));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Display help message for builtin command */
|
/* Display help message for builtin commands */
|
||||||
for (i=0; i<=WCMD_EXIT; i++) {
|
for (i=0; i<=WCMD_EXIT; i++) {
|
||||||
if (CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE | SORT_STRINGSORT,
|
if (CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE | SORT_STRINGSORT,
|
||||||
command, -1, inbuilt[i], -1) == CSTR_EQUAL) {
|
command, -1, inbuilt[i], -1) == CSTR_EQUAL) {
|
||||||
|
@ -211,6 +211,9 @@ typedef struct _DIRECTORY_STACK
|
|||||||
/* Must be last in list */
|
/* Must be last in list */
|
||||||
#define WCMD_EXIT 44
|
#define WCMD_EXIT 44
|
||||||
|
|
||||||
|
#define NUM_EXTERNALS 2
|
||||||
|
extern const WCHAR externals[NUM_EXTERNALS][10];
|
||||||
|
|
||||||
/* Some standard messages */
|
/* Some standard messages */
|
||||||
extern const WCHAR newline[];
|
extern const WCHAR newline[];
|
||||||
extern WCHAR anykey[];
|
extern WCHAR anykey[];
|
||||||
|
@ -79,6 +79,11 @@ const WCHAR inbuilt[][10] = {
|
|||||||
{'E','X','I','T','\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'}
|
||||||
|
};
|
||||||
|
|
||||||
HINSTANCE hinst;
|
HINSTANCE hinst;
|
||||||
DWORD errorlevel;
|
DWORD errorlevel;
|
||||||
int echo_mode = 1, verify_mode = 0, defaultColor = 7;
|
int echo_mode = 1, verify_mode = 0, defaultColor = 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user