[PATCH 4/6] [cmd] Add for /f parsingkeyword parsing, add support for skip=

Alexandre Julliard julliard at winehq.org
Wed Oct 17 05:01:02 CDT 2012


Ann and Jason Edmeades <jason at edmeades.me.uk> writes:

> Parse the options you can provide with for /f to control the
> subsequent parsing, and add support for the simplest (skip).
> @@ -1546,6 +1545,13 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
>    int    itemNum;
>    CMD_LIST *thisCmdStart;
>    int    parameterNo = 0;
> +  WCHAR  forf_eol=0;
> +  int    forf_skip=0;
> +  WCHAR  forf_delims[256];
> +  WCHAR  forf_tokens[MAXSTRING];
> +  BOOL   forf_usebackq = FALSE;
> +  static const WCHAR forf_defaultdelims[] = {' ', '\t'};
> +  static const WCHAR forf_defaulttokens[] = {'1'};

It's clearly time to start splitting WCMD_for into several helper
functions.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list