mirror of
https://github.com/curl/curl.git
synced 2026-07-28 09:13:07 +03:00
code: language cleanup in comments
Based on the standards and guidelines we use for our documentation. - expand contractions (they're => they are etc) - host name = > hostname - file name => filename - user name = username - man page => manpage - run-time => runtime - set-up => setup - back-end => backend - a HTTP => an HTTP - Two spaces after a period => one space after period Closes #14073
This commit is contained in:
parent
9b683577e1
commit
c074ba64a8
213 changed files with 1719 additions and 1715 deletions
|
|
@ -637,7 +637,7 @@ static int get_param_part(struct OperationConfig *config, char endchar,
|
|||
*pfilename = filename;
|
||||
else if(filename)
|
||||
warnf(config->global,
|
||||
"Field file name not allowed here: %s", filename);
|
||||
"Field filename not allowed here: %s", filename);
|
||||
|
||||
if(pencoder)
|
||||
*pencoder = encoder;
|
||||
|
|
@ -693,7 +693,7 @@ static int get_param_part(struct OperationConfig *config, char endchar,
|
|||
* 'name=foo;headers=@headerfile' or why not
|
||||
* 'name=@filemame;headers=@headerfile'
|
||||
*
|
||||
* To upload a file, but to fake the file name that will be included in the
|
||||
* To upload a file, but to fake the filename that will be included in the
|
||||
* formpost, do like this:
|
||||
*
|
||||
* 'name=@filename;filename=/dev/null' or quote the faked filename like:
|
||||
|
|
@ -720,7 +720,7 @@ int formparse(struct OperationConfig *config,
|
|||
struct tool_mime **mimecurrent,
|
||||
bool literal_value)
|
||||
{
|
||||
/* input MUST be a string in the format 'name=contents' and we'll
|
||||
/* input MUST be a string in the format 'name=contents' and we will
|
||||
build a linked list with the info */
|
||||
char *name = NULL;
|
||||
char *contents = NULL;
|
||||
|
|
@ -779,7 +779,7 @@ int formparse(struct OperationConfig *config,
|
|||
}
|
||||
else if('@' == contp[0] && !literal_value) {
|
||||
|
||||
/* we use the @-letter to indicate file name(s) */
|
||||
/* we use the @-letter to indicate filename(s) */
|
||||
|
||||
struct tool_mime *subparts = NULL;
|
||||
|
||||
|
|
@ -831,7 +831,7 @@ int formparse(struct OperationConfig *config,
|
|||
SET_TOOL_MIME_PTR(part, encoder);
|
||||
|
||||
/* *contp could be '\0', so we just check with the delimiter */
|
||||
} while(sep); /* loop if there's another file name */
|
||||
} while(sep); /* loop if there is another filename */
|
||||
part = (*mimecurrent)->subparts; /* Set name on group. */
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue