cmd: Rename a parameter in WCMD_parameter.
diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index a276d3e..acab893 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -120,30 +120,30 @@
* s [I] input string, non NULL
* n [I] # of the (possibly double quotes-delimited) parameter to return
* Starts at 0
- * where [O] if non NULL, pointer to the start of the nth parameter in s,
+ * start [O] if non NULL, pointer to the start of the nth parameter in s,
* potentially a " character
* end [O] if non NULL, pointer to the last char of
* the nth parameter in s, potentially a " character
*
* RETURNS
* Success: Returns the nth delimited parameter found in s.
- * *where points to the start of the param, possibly a starting
+ * *start points to the start of the param, possibly a starting
* double quotes character
* Failure: Returns an empty string if the param is not found.
- * *where is set to NULL
+ * *start is set to NULL
*
* NOTES
* Return value is stored in static storage, hence is overwritten
* after each call.
* Doesn't include any potentially delimiting double quotes
*/
-WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where, WCHAR **end) {
+WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **start, WCHAR **end) {
int curParamNb = 0;
static WCHAR param[MAX_PATH];
WCHAR *p = s, *q;
BOOL quotesDelimited;
- if (where != NULL) *where = NULL;
+ if (start != NULL) *start = NULL;
if (end != NULL) *end = NULL;
param[0] = '\0';
while (TRUE) {
@@ -152,7 +152,7 @@
if (*p == '\0') return param;
quotesDelimited = (*p == '"');
- if (where != NULL && curParamNb == n) *where = p;
+ if (start != NULL && curParamNb == n) *start = p;
if (quotesDelimited) {
q = ++p;
diff --git a/programs/cmd/wcmd.h b/programs/cmd/wcmd.h
index 33ae12f..962fd52 100644
--- a/programs/cmd/wcmd.h
+++ b/programs/cmd/wcmd.h
@@ -102,7 +102,7 @@
return (((DWORD_PTR)h) & 3) == 3;
}
WCHAR *WCMD_fgets (WCHAR *buf, int n, HANDLE stream);
-WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where, WCHAR **end);
+WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **start, WCHAR **end);
WCHAR *WCMD_skip_leading_spaces (WCHAR *string);
BOOL WCMD_keyword_ws_found(const WCHAR *keyword, int len, const WCHAR *ptr);
void WCMD_HandleTildaModifiers(WCHAR **start, const WCHAR *forVariable, const WCHAR *forValue, BOOL justFors);