#include "diskpart.h"
#include "diskpart_msg.h"
Go to the source code of this file.
◆ InterpretCmd()
Definition at line 108 of file interpreter.c.
111{
116
117
120
121
122
125
128
129
130 for (cmdptr =
cmds; cmdptr->
cmd1; cmdptr++)
131 {
132 if ((cmdptr1 ==
NULL) &&
134 cmdptr1 = cmdptr;
135
136 if ((cmdptr2 ==
NULL) &&
140 cmdptr2 = cmdptr;
141
142 if ((cmdptr3 ==
NULL) &&
147 cmdptr3 = cmdptr;
148 }
149
151 {
154 else
156 }
157 else if (cmdptr2 !=
NULL)
158 {
161 else
163 }
164 else if (cmdptr1 !=
NULL)
165 {
168 else
170 }
171
173
175}
EXIT_CODE HelpCommand(_In_ PCOMMAND pCommand)
VOID HelpCommandList(VOID)
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
INT(* func)(INT, WCHAR **)
Referenced by InterpretMain(), and InterpretScript().
◆ InterpretMain()
Definition at line 232 of file interpreter.c.
233{
241
243 {
244 args_count = 0;
245 memset(args_vector, 0,
sizeof(args_vector));
246
247
249
250
252
256 {
258 bQuote = !bQuote;
259
261 {
264 }
265 else
266 {
268 {
269 args_vector[args_count] =
ptr;
270 args_count++;
271 }
273 }
275 }
276
277
279 }
280}
void ConResPuts(FILE *fp, UINT nID)
EXIT_CODE InterpretCmd(int argc, LPWSTR *argv)
enum _EXIT_CODE EXIT_CODE
wchar_t *CDECL fgetws(wchar_t *s, int size, FILE *file)
Referenced by wmain().
◆ InterpretScript()
Definition at line 183 of file interpreter.c.
185{
191
192 memset(args_vector, 0,
sizeof(args_vector));
193
197 {
199 bQuote = !bQuote;
200
202 {
205 }
206 else
207 {
209 {
210 args_vector[args_count] =
ptr;
211 args_count++;
212 }
213
215 }
216
218 }
219
220
222}
◆ cmds