mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:23:10 +00:00
[CMD] IF: Some functionality is available only when extensions are enabled.
This functionality is: case insensitivity comparisons (/I); CMDEXTVERSION and DEFINED unary operators; EQU, NEQ, LSS, LEQ, GTR, GEQ generic string comparators.
This commit is contained in:
parent
80844dc185
commit
fedc68aea8
4 changed files with 48 additions and 19 deletions
|
@ -28,6 +28,9 @@
|
|||
#include "cmdver.h"
|
||||
#include "cmddbg.h"
|
||||
|
||||
/* Version of the Command Extensions */
|
||||
#define CMDEXTVERSION 2
|
||||
|
||||
#define BREAK_BATCHFILE 1
|
||||
#define BREAK_OUTOFBATCH 2 /* aka. BREAK_ENDOFBATCHFILES */
|
||||
#define BREAK_INPUT 3
|
||||
|
@ -232,11 +235,21 @@ INT CommandHistory(LPTSTR param);
|
|||
#endif
|
||||
|
||||
/* Prototypes for IF.C */
|
||||
#define IFFLAG_NEGATE 1 /* NOT */
|
||||
#define IFFLAG_IGNORECASE 2 /* /I */
|
||||
enum { IF_CMDEXTVERSION, IF_DEFINED, IF_ERRORLEVEL, IF_EXIST,
|
||||
IF_STRINGEQ, /* == */
|
||||
IF_EQU, IF_GTR, IF_GEQ, IF_LSS, IF_LEQ, IF_NEQ };
|
||||
#define IFFLAG_NEGATE 1 /* NOT */
|
||||
#define IFFLAG_IGNORECASE 2 /* /I - Extended */
|
||||
enum {
|
||||
/** Unary operators **/
|
||||
/* Standard */
|
||||
IF_ERRORLEVEL, IF_EXIST,
|
||||
/* Extended */
|
||||
IF_CMDEXTVERSION, IF_DEFINED,
|
||||
|
||||
/** Binary operators **/
|
||||
/* Standard */
|
||||
IF_STRINGEQ, /* == */
|
||||
/* Extended */
|
||||
IF_EQU, IF_NEQ, IF_LSS, IF_LEQ, IF_GTR, IF_GEQ
|
||||
};
|
||||
INT ExecuteIf(struct _PARSED_COMMAND *Cmd);
|
||||
|
||||
/* Prototypes for INTERNAL.C */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue