mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 01:52:57 +00:00
[CMD] Some fixes for getting the enhanced '%~XXX' batch/FOR variables.
CORE-11857 CORE-13736 It will be followed with a separate fix for the FOR-loop code. Fixes some cmd_winetests. A NULL pointer can be returned for a valid existing batch/FOR variable, in which case the enhanced-variable getter should return an empty string. This situation can happen e.g. when forcing a FOR-loop to tokenize a text line with not enough tokens in it.
This commit is contained in:
parent
014efdf7e8
commit
cb2a9c31a6
4 changed files with 146 additions and 58 deletions
|
@ -44,7 +44,12 @@ extern BOOL bEcho; /* The echo flag */
|
|||
extern TCHAR textline[BATCH_BUFFSIZE]; /* Buffer for reading Batch file lines */
|
||||
|
||||
|
||||
LPTSTR FindArg(TCHAR, BOOL *);
|
||||
BOOL
|
||||
FindArg(
|
||||
IN TCHAR Char,
|
||||
OUT PCTSTR* ArgPtr,
|
||||
OUT BOOL* IsParam0);
|
||||
|
||||
VOID ExitBatch(VOID);
|
||||
VOID ExitAllBatches(VOID);
|
||||
INT Batch(LPTSTR, LPTSTR, LPTSTR, PARSED_COMMAND *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue