ReactOS 0.4.16-dev-975-g3b8cfa4
|
Go to the source code of this file.
Classes | |
struct | tagCOMMAND |
struct | _PARSED_COMMAND |
struct | _REDIRECTION |
Macros | |
#define | CMDEXTVERSION 2 |
#define | BREAK_BATCHFILE 1 |
#define | BREAK_OUTOFBATCH 2 /* aka. BREAK_ENDOFBATCHFILES */ |
#define | BREAK_INPUT 3 |
#define | BREAK_IGNORE 4 |
#define | D_ON _T("on") |
#define | D_OFF _T("off") |
#define | CMDLINE_LENGTH 8192 |
#define | BUFF_SIZE 16384 |
#define | IS_COMPLETION_DISABLED(CompletionCtrl) ((CompletionCtrl) == 0x00 || (CompletionCtrl) == 0x0D || (CompletionCtrl) >= 0x20) |
#define | CMD_SPECIAL 1 |
#define | CMD_BATCHONLY 2 |
#define | CMD_HIDE 4 |
#define | FOR_DIRS 1 /* /D */ |
#define | FOR_F 2 /* /F */ |
#define | FOR_LOOP 4 /* /L */ |
#define | FOR_RECURSIVE 8 /* /R */ |
#define | IFFLAG_NEGATE 1 /* NOT */ |
#define | IFFLAG_IGNORECASE 2 /* /I - Extended */ |
#define | PROMPT_NO 0 |
#define | PROMPT_YES 1 |
#define | PROMPT_ALL 2 |
#define | PROMPT_BREAK 3 |
#define | STANDARD_SEPS _T(",;=") |
Typedefs | |
typedef struct tagCOMMAND | COMMAND |
typedef struct tagCOMMAND * | LPCOMMAND |
typedef enum _IF_OPERATOR | IF_OPERATOR |
typedef enum _COMMAND_TYPE | COMMAND_TYPE |
typedef struct _PARSED_COMMAND | PARSED_COMMAND |
typedef enum _REDIR_MODE | REDIR_MODE |
typedef struct _REDIRECTION | REDIRECTION |
Enumerations | |
enum | _IF_OPERATOR { IF_ERRORLEVEL , IF_EXIST , IF_CMDEXTVERSION , IF_DEFINED , IF_STRINGEQ , IF_EQU , IF_NEQ , IF_LSS , IF_LEQ , IF_GTR , IF_GEQ } |
enum | _COMMAND_TYPE { C_COMMAND , C_QUIET , C_BLOCK , C_MULTI , C_OR , C_AND , C_PIPE , C_FOR , C_IF , C_REM } |
enum | _REDIR_MODE { REDIR_READ = 0 , REDIR_WRITE = 1 , REDIR_APPEND = 2 } |
#define IS_COMPLETION_DISABLED | ( | CompletionCtrl | ) | ((CompletionCtrl) == 0x00 || (CompletionCtrl) == 0x0D || (CompletionCtrl) >= 0x20) |
typedef struct tagCOMMAND COMMAND |
typedef enum _COMMAND_TYPE COMMAND_TYPE |
typedef enum _IF_OPERATOR IF_OPERATOR |
typedef struct tagCOMMAND * LPCOMMAND |
typedef struct _PARSED_COMMAND PARSED_COMMAND |
typedef enum _REDIR_MODE REDIR_MODE |
typedef struct _REDIRECTION REDIRECTION |
Enumerator | |
---|---|
C_COMMAND | |
C_QUIET | |
C_BLOCK | |
C_MULTI | |
C_OR | |
C_AND | |
C_PIPE | |
C_FOR | |
C_IF | |
C_REM |
Definition at line 350 of file cmd.h.
Enumerator | |
---|---|
IF_ERRORLEVEL | Unary operators |
IF_EXIST | |
IF_CMDEXTVERSION | |
IF_DEFINED | |
IF_STRINGEQ | Binary operators |
IF_EQU | |
IF_NEQ | |
IF_LSS | |
IF_LEQ | |
IF_GTR | |
IF_GEQ |
Definition at line 262 of file cmd.h.
Enumerator | |
---|---|
REDIR_READ | |
REDIR_WRITE | |
REDIR_APPEND |
Definition at line 443 of file cmd.h.
Definition at line 474 of file misc.c.
Referenced by BatchParams(), ExecuteAsync(), ForRecursive(), GetEnhancedVar(), ParseCommandPart(), ParseFor(), ParseRem(), and SubstituteForVars().
Definition at line 198 of file misc.c.
Referenced by expand(), split(), and splitspace().
Definition at line 1844 of file cmd.c.
Referenced by FilePromptYN(), FilePromptYNA(), Initialize(), and PagePrompt().
Definition at line 242 of file util.c.
Referenced by CheckCtrlBreak().
Definition at line 146 of file misc.c.
Referenced by cmd_copy(), CommandDir(), copy(), DirList(), DirPrintBareList(), DirPrintNewList(), DirPrintOldList(), DirPrintWideList(), ExitBatch(), ReadBatchLine(), ReadLine(), and RemoveFile().
Definition at line 40 of file call.c.
Definition at line 240 of file internal.c.
Definition at line 332 of file copy.c.
Definition at line 176 of file date.c.
Referenced by Initialize().
Definition at line 110 of file setlocal.c.
Referenced by ExitBatch().
Definition at line 36 of file goto.c.
Referenced by Batch(), and CommandExit().
Definition at line 360 of file internal.c.
Definition at line 124 of file mklink.c.
Definition at line 87 of file move.c.
Definition at line 36 of file path.c.
Referenced by RunShell().
Definition at line 260 of file prompt.c.
Definition at line 53 of file ren.c.
Definition at line 521 of file internal.c.
Definition at line 72 of file set.c.
Definition at line 42 of file setlocal.c.
Definition at line 37 of file start.c.
Definition at line 132 of file time.c.
Referenced by Initialize().
Definition at line 221 of file type.c.
Referenced by client_dde_callback().
Definition at line 126 of file ver.c.
Definition at line 64 of file vol.c.
Definition at line 174 of file alias.c.
Definition at line 238 of file assoc.c.
Definition at line 102 of file choice.c.
Definition at line 32 of file color.c.
Definition at line 17 of file delay.c.
Definition at line 358 of file del.c.
Definition at line 1843 of file dir.c.
Definition at line 154 of file dirstack.c.
Definition at line 621 of file internal.c.
Definition at line 18 of file memory.c.
Definition at line 132 of file dirstack.c.
Definition at line 107 of file dirstack.c.
Definition at line 695 of file internal.c.
Definition at line 18 of file screen.c.
Definition at line 707 of file internal.c.
Definition at line 59 of file timer.c.
Definition at line 189 of file cmd.c.
Referenced by CommandMemory(), DirPrintNewList(), DirPrintOldList(), PrintDiskInfo(), and PrintSummary().
Definition at line 91 of file dirstack.c.
Referenced by Cleanup().
INT DoCommand | ( | LPTSTR | first, |
LPTSTR | rest, | ||
struct _PARSED_COMMAND * | Cmd | ||
) |
Definition at line 557 of file cmd.c.
Referenced by ExecuteCommand().
Definition at line 1640 of file cmd.c.
Referenced by Batch(), ExecuteCommand(), ExecuteFor(), ExecuteIf(), and PerformRedirection().
VOID DumpCommand | ( | IN PARSED_COMMAND * | Cmd, |
IN ULONG | SpacePad | ||
) |
Definition at line 1533 of file parser.c.
Referenced by DumpCommand(), and ParseCommand().
Definition at line 25 of file setlocal.c.
Referenced by _tmain(), cmd_endlocal(), and cmd_setlocal().
VOID EchoCommand | ( | IN PARSED_COMMAND * | Cmd | ) |
Definition at line 1808 of file parser.c.
Referenced by EchoCommand(), and ExecuteCommandWithEcho().
Definition at line 93 of file error.c.
Referenced by cmd_move(), cmd_rename(), and PrintSummary().
Definition at line 117 of file error.c.
Referenced by cmd_chdir(), and cmd_vol().
Referenced by cmd_move(), cmd_setlocal(), and CommandDelete().
Referenced by cmd_mklink(), cmd_shift(), cmd_ver(), and DirReadParam().
Definition at line 131 of file error.c.
Referenced by ExecutePipeline().
Definition at line 138 of file error.c.
Referenced by BatchParams(), cmd_call(), cmd_path(), cmd_setlocal(), cmd_start(), DoCommand(), ExecuteAsync(), ForF(), and PushDirectory().
Referenced by DirReadParam().
Definition at line 110 of file error.c.
Referenced by cmd_ctty(), cmd_mklink(), cmd_move(), cmd_rename(), cmd_rmdir(), cmd_type(), CommandDelay(), CommandDelete(), and CommandScreen().
Referenced by DeleteFiles(), and ForF().
Referenced by cmd_move(), cmd_rename(), ExecuteIf(), ForF(), and ParseErrorEx().
Referenced by cmd_mklink(), cmd_move(), and ExecutePipeline().
INT ExecuteCommand | ( | IN struct _PARSED_COMMAND * | Cmd | ) |
INT ExecuteCommandWithEcho | ( | IN struct _PARSED_COMMAND * | Cmd | ) |
INT ExecuteFor | ( | struct _PARSED_COMMAND * | Cmd | ) |
Definition at line 604 of file for.c.
Referenced by ExecuteCommand().
INT ExecuteIf | ( | struct _PARSED_COMMAND * | Cmd | ) |
Definition at line 66 of file if.c.
Referenced by ExecuteCommand().
Definition at line 89 of file alias.c.
Referenced by ReadCommand().
Definition at line 573 of file misc.c.
Referenced by DeleteFiles().
Definition at line 110 of file util.c.
INT FormatDate | ( | TCHAR * | lpDate, |
LPSYSTEMTIME | dt, | ||
BOOL | b4Digit | ||
) |
Definition at line 675 of file dir.c.
Referenced by DirPrintFileDateTime(), and GetEnhancedVar().
INT FormatTime | ( | TCHAR * | lpTime, |
LPSYSTEMTIME | dt | ||
) |
Definition at line 704 of file dir.c.
Referenced by cmd_time(), DirPrintFileDateTime(), and GetEnhancedVar().
VOID FreeCommand | ( | IN OUT PARSED_COMMAND * | Cmd | ) |
Definition at line 527 of file parser.c.
Referenced by Batch(), cmd_call(), FreeCommand(), ParseBlock(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandLine(), ParseFor(), ParseIf(), and ProcessInput().
VOID FreeRedirection | ( | REDIRECTION * | Redir | ) |
Definition at line 153 of file redir.c.
Referenced by ExitBatch(), FreeCommand(), ParsePrimary(), and ParseRedirection().
Definition at line 58 of file locale.c.
Referenced by cmd_date(), GetEnvVarOrSpecial(), and PrintPrompt().
Definition at line 98 of file dirstack.c.
Referenced by PrintPrompt().
Definition at line 904 of file cmd.c.
Referenced by ExecuteIf(), seta_identval(), and SubstituteVar().
Definition at line 39 of file redir.c.
Definition at line 86 of file misc.c.
INT GetRedirection | ( | LPTSTR | , |
REDIRECTION ** | |||
) |
Definition at line 21 of file util.c.
Referenced by cmd_chdir().
Definition at line 70 of file locale.c.
Referenced by cmd_time(), CommandTimer(), GetEnvVarOrSpecial(), and PrintPrompt().
Definition at line 72 of file prompt.c.
Referenced by Initialize(), and PrintPrompt().
Definition at line 80 of file dirstack.c.
Referenced by Initialize().
Definition at line 25 of file locale.c.
Referenced by cmd_start(), Execute(), and Initialize().
Definition at line 32 of file ver.c.
Referenced by Initialize().
Definition at line 57 of file prompt.c.
Referenced by Initialize().
Definition at line 496 of file misc.c.
Definition at line 32 of file echo.c.
Referenced by cmd_verify(), and CommandEcho().
BOOL __stdcall PagePrompt | ( | PCON_PAGER | Pager, |
DWORD | Done, | ||
DWORD | Total | ||
) |
Definition at line 526 of file misc.c.
PARSED_COMMAND * ParseCommand | ( | IN PCTSTR | Line | ) |
Definition at line 1461 of file parser.c.
Referenced by Batch(), cmd_call(), ParseCommandLine(), and ProcessInput().
Definition at line 636 of file cmd.c.
Referenced by _tmain(), Cleanup(), ExecuteAutoRunFile(), and Initialize().
Definition at line 227 of file parser.c.
Referenced by cmd_for(), cmd_if(), GetBatchVar(), ParseCommandPart(), and ParseError().
BOOL PerformRedirection | ( | REDIRECTION * | RedirList | ) |
Definition at line 63 of file redir.c.
Referenced by ExecuteCommand().
Definition at line 230 of file cmdtable.c.
Referenced by CommandShowCommands().
Definition at line 134 of file prompt.c.
Referenced by Batch(), ExecuteCommandWithEcho(), ReadCommand(), and ReadLine().
Definition at line 138 of file cmdinput.c.
Definition at line 1721 of file cmd.c.
Referenced by ParseChar(), and ParseCommand().
Definition at line 1850 of file cmd.c.
Referenced by Cleanup(), FilePromptYN(), FilePromptYNA(), and PagePrompt().
Definition at line 266 of file cmd.c.
Referenced by cmd_start(), and Execute().
Definition at line 142 of file where.c.
Referenced by cmd_start(), Execute(), and GetCmdLineCommand().
Definition at line 50 of file redir.c.
Referenced by cmd_ctty(), PerformRedirection(), and UndoRedirection().
Definition at line 182 of file internal.c.
Referenced by cmd_chdir(), and CommandPushd().
Definition at line 296 of file misc.c.
Definition at line 395 of file misc.c.
Referenced by cmd_move(), and cmd_setlocal().
Definition at line 255 of file strtoclr.c.
Referenced by CommandColor().
Definition at line 1596 of file cmd.c.
Referenced by DoDelayedExpansion(), EchoCommand(), and UnparseCommand().
BOOL SubstituteVar | ( | IN PCTSTR | Src, |
OUT size_t * | SrcIncLen, | ||
OUT PTCHAR | Dest, | ||
IN PTCHAR | DestEnd, | ||
OUT size_t * | DestIncLen, | ||
IN TCHAR | Delim | ||
) |
Definition at line 1326 of file cmd.c.
Referenced by DoDelayedExpansion(), and SubstituteVars().
Definition at line 1514 of file cmd.c.
Referenced by ParseCommand(), and ReadLine().
VOID UndoRedirection | ( | REDIRECTION * | Redir, |
REDIRECTION * | End | ||
) |
Definition at line 142 of file redir.c.
Referenced by ExecuteCommand(), ExitBatch(), and PerformRedirection().
Definition at line 1965 of file parser.c.
Referenced by ExecuteAsync().
|
extern |
Definition at line 111 of file cmdinput.c.
Referenced by Initialize(), and LoadRegistrySettings().
|
extern |
Definition at line 11 of file util.c.
Referenced by BreakHandler(), cgetchar(), and ProcessInput().
|
extern |
Definition at line 162 of file cmd.c.
Referenced by cmd_endlocal(), cmd_setlocal(), DoDelayedExpansion(), Initialize(), and LoadRegistrySettings().
|
extern |
Definition at line 160 of file cmd.c.
Referenced by Batch(), ExecuteCommandWithEcho(), and Initialize().
|
extern |
Definition at line 53 of file more.c.
Referenced by Batch(), cmd_call(), cmd_chdir(), cmd_date(), cmd_endlocal(), cmd_goto(), cmd_setlocal(), cmd_time(), CommandExit(), ExecuteFor(), ExecuteIf(), GetEnvVarOrSpecial(), Initialize(), LoadRegistrySettings(), ParseFor(), ParseIf(), SetRootPath(), and wmain().
|
extern |
Definition at line 152 of file cmd.c.
Referenced by _tmain(), Batch(), CommandExit(), ExecuteCommand(), Fbt_Dispatch(), Initialize(), ProcessInput(), ReadLine(), and WINHELP_DeleteWindow().
|
extern |
Definition at line 97 of file parser.c.
Referenced by cmd_call(), ParseCommandOp(), ParseToken(), and ParseTokenEx().
|
extern |
Definition at line 155 of file cmd.c.
Referenced by Batch(), CommandScreen(), ExecuteCommandWithEcho(), ParseCommand(), and ReadLine().
|
extern |
Definition at line 96 of file parser.c.
Referenced by cmd_call(), and ParseCommandBinaryOp().
|
extern |
Definition at line 90 of file parser.c.
Referenced by Batch(), cmd_call(), ParseBlock(), ParseChar(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandLine(), ParseCommandPart(), ParseErrorEx(), ParsePrimary(), ResetParser(), and SubstituteVar().
|
extern |
Definition at line 16 of file locale.c.
Referenced by FormatDate(), InitLocale(), PromptDateString(), and ReadSeparator().
|
extern |
Definition at line 19 of file locale.c.
Referenced by CommandTimer(), GetTimeString(), InitLocale(), ParseTime(), and PrintElapsedTime().
|
extern |
Definition at line 165 of file cmd.c.
Referenced by _tmain(), CheckCtrlBreak(), CommandChoice(), DirPrintFiles(), error_sfile_not_found(), error_syntax(), ErrorMessage(), FilePromptYN(), FilePromptYNA(), LoadStrings(), PrintDirectoryHeader(), PrintDiskInfo(), PrintInfoLine(), and PrintSummary().
|
extern |
Definition at line 18 of file locale.c.
Referenced by ConvertULargeInteger(), and InitLocale().
|
extern |
Definition at line 17 of file locale.c.
Referenced by CommandTimer(), FormatTime(), GetTimeString(), InitLocale(), ParseTime(), and PrintElapsedTime().
|
extern |
Definition at line 164 of file cmd.c.
Referenced by _tmain(), and cmd_start().
|
extern |
Definition at line 20 of file locale.c.
Referenced by FormatDate(), InitLocale(), ParseDate(), and PromptDateString().
|
extern |
Definition at line 158 of file cmd.c.
Referenced by _tmain(), Batch(), calc(), cmd_call(), cmd_chdir(), cmd_copy(), cmd_date(), cmd_mkdir(), cmd_mklink(), cmd_move(), cmd_path(), cmd_prompt(), cmd_rename(), cmd_set(), cmd_setlocal(), cmd_shift(), cmd_start(), cmd_time(), cmd_type(), cmd_ver(), cmd_verify(), cmd_vol(), CommandAlias(), CommandAssoc(), CommandChoice(), CommandColor(), CommandDelay(), CommandDelete(), CommandDir(), CommandDirs(), CommandExit(), CommandScreen(), CommandTimer(), copy(), DeleteFiles(), DoDelayedExpansion(), DoTypeFile(), error_bad_command(), error_file_not_found(), error_invalid_drive(), error_invalid_parameter_format(), error_invalid_switch(), error_no_pipe(), error_out_of_memory(), error_parameter_format(), error_path_not_found(), error_req_param_missing(), error_sfile_not_found(), error_syntax(), error_too_many_parameters(), Execute(), ExecuteCommand(), ExecuteIf(), ExecutePipeline(), GetEnvVarOrSpecial(), Initialize(), PushDirectory(), seta_bitAndTerm(), seta_eval(), seta_unaryTerm(), SetRootPath(), SubstituteVar(), and SubstituteVars().
|
extern |
Definition at line 22 of file locale.c.
Referenced by ConvertULargeInteger(), and InitLocale().
|
extern |
Definition at line 21 of file locale.c.
Referenced by FormatTime(), InitLocale(), and ParseTime().
|
extern |
Definition at line 92 of file parser.c.
Referenced by Batch(), InitParser(), ParseChar(), and ParseCommand().
|
extern |
Definition at line 112 of file cmdinput.c.
Referenced by Initialize(), and LoadRegistrySettings().
|
extern |
Referenced by CommandColor(), ConSetScreenColor(), DisplayScreen(), MainLoop(), and WriteStringAt().
|
extern |
Definition at line 180 of file cmd.c.
Referenced by CommandColor(), Initialize(), and LoadRegistrySettings().