[CMD] Further code style and formatting fixes.

This commit is contained in:
Hermès Bélusca-Maïto 2020-07-26 20:30:03 +02:00
parent c93f511241
commit ca912d7b36
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
7 changed files with 164 additions and 168 deletions

View file

@ -4,9 +4,9 @@
#pragma once
typedef struct tagBATCHCONTEXT
typedef struct _BATCH_CONTEXT
{
struct tagBATCHCONTEXT *prev;
struct _BATCH_CONTEXT *prev;
char *mem; /* batchfile content in memory */
DWORD memsize; /* size of batchfile */
DWORD mempos; /* current position to read from */
@ -19,24 +19,23 @@ typedef struct tagBATCHCONTEXT
REDIRECTION *RedirList;
PARSED_COMMAND *current;
struct _SETLOCAL *setlocal;
} BATCH_CONTEXT, *LPBATCH_CONTEXT;
} BATCH_CONTEXT, *PBATCH_CONTEXT;
typedef struct tagFORCONTEXT
typedef struct _FOR_CONTEXT
{
struct tagFORCONTEXT *prev;
struct _FOR_CONTEXT *prev;
TCHAR firstvar;
UINT varcount;
LPTSTR *values;
} FOR_CONTEXT, *LPFOR_CONTEXT;
} FOR_CONTEXT, *PFOR_CONTEXT;
/*
* The stack of current batch contexts.
* NULL when no batch is active
* NULL when no batch is active.
*/
extern LPBATCH_CONTEXT bc;
extern LPFOR_CONTEXT fc;
extern PBATCH_CONTEXT bc;
extern PFOR_CONTEXT fc;
extern BOOL bEcho; /* The echo flag */