changes to make cmd compile (not link)
[reactos.git] / rosapps / cmd / batch.h
1 /*
2 * BATCH.H - A structure to preserve the context of a batch file
3 *
4 *
5 */
6
7 #ifndef _BATCH_H_INCLUDED_
8 #define _BATCH_H_INCLUDED_
9
10
11 typedef struct tagBATCHCONTEXT
12 {
13 struct tagBATCHCONTEXT *prev;
14 LPWIN32_FIND_DATA ffind;
15 HANDLE hBatchFile;
16 LPTSTR forproto;
17 LPTSTR params;
18 INT shiftlevel;
19 BOOL bEcho; /* Preserve echo flag across batch calls [HBP_001] */
20 TCHAR forvar;
21 } BATCH_CONTEXT, *LPBATCH_CONTEXT;
22
23 /* HBP_002 } */
24
25
26 /* The stack of current batch contexts.
27 * NULL when no batch is active
28 */
29 extern LPBATCH_CONTEXT bc;
30
31 extern BOOL bEcho; /* The echo flag */
32
33 #define BATCH_BUFFSIZE 2048
34
35 extern TCHAR textline[BATCH_BUFFSIZE]; /* Buffer for reading Batch file lines */
36
37
38 LPTSTR FindArg (INT);
39 LPTSTR BatchParams (LPTSTR, LPTSTR);
40 VOID ExitBatch (LPTSTR);
41 BOOL Batch (LPTSTR, LPTSTR, LPTSTR);
42 LPTSTR ReadBatchLine (LPBOOL);
43
44 #endif /* _BATCH_H_INCLUDED_ */