mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:03:32 +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
|
|
@ -51,7 +51,7 @@ static FILE *execpath(const char *filename, char **pathp)
|
|||
{
|
||||
static char filebuffer[512];
|
||||
/* Get the filename of our executable. GetModuleFileName is already declared
|
||||
* via inclusions done in setup header file. We assume that we are using
|
||||
* via inclusions done in setup header file. We assume that we are using
|
||||
* the ASCII version here.
|
||||
*/
|
||||
unsigned long len = GetModuleFileNameA(0, filebuffer, sizeof(filebuffer));
|
||||
|
|
@ -196,7 +196,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
if(*line) {
|
||||
*line = '\0'; /* null-terminate */
|
||||
|
||||
/* to detect mistakes better, see if there's data following */
|
||||
/* to detect mistakes better, see if there is data following */
|
||||
line++;
|
||||
/* pass all spaces */
|
||||
while(*line && ISSPACE(*line))
|
||||
|
|
@ -217,7 +217,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
}
|
||||
if(!*param)
|
||||
/* do this so getparameter can check for required parameters.
|
||||
Otherwise it always thinks there's a parameter. */
|
||||
Otherwise it always thinks there is a parameter. */
|
||||
param = NULL;
|
||||
}
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
operation = global->last;
|
||||
|
||||
if(!res && param && *param && !usedarg)
|
||||
/* we passed in a parameter that wasn't used! */
|
||||
/* we passed in a parameter that was not used! */
|
||||
res = PARAM_GOT_EXTRA_PARAMETER;
|
||||
|
||||
if(res == PARAM_NEXT_OPERATION) {
|
||||
|
|
@ -255,7 +255,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
}
|
||||
|
||||
if(res != PARAM_OK && res != PARAM_NEXT_OPERATION) {
|
||||
/* the help request isn't really an error */
|
||||
/* the help request is not really an error */
|
||||
if(!strcmp(filename, "-")) {
|
||||
filename = "<stdin>";
|
||||
}
|
||||
|
|
@ -282,7 +282,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
rc = 1;
|
||||
}
|
||||
else
|
||||
rc = 1; /* couldn't open the file */
|
||||
rc = 1; /* could not open the file */
|
||||
|
||||
free(pathalloc);
|
||||
return rc;
|
||||
|
|
@ -293,7 +293,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
* backslash-quoted characters and NUL-terminating the output string.
|
||||
* Stops at the first non-backslash-quoted double quote character or the
|
||||
* end of the input string. param must be at least as long as the input
|
||||
* string. Returns the pointer after the last handled input character.
|
||||
* string. Returns the pointer after the last handled input character.
|
||||
*/
|
||||
static const char *unslashquote(const char *line, char *param)
|
||||
{
|
||||
|
|
@ -341,7 +341,7 @@ static bool my_get_line(FILE *fp, struct curlx_dynbuf *db,
|
|||
/* fgets() returns s on success, and NULL on error or when end of file
|
||||
occurs while no characters have been read. */
|
||||
if(!fgets(buf, sizeof(buf), fp))
|
||||
/* only if there's data in the line, return TRUE */
|
||||
/* only if there is data in the line, return TRUE */
|
||||
return curlx_dyn_len(db) ? TRUE : FALSE;
|
||||
if(curlx_dyn_add(db, buf)) {
|
||||
*error = TRUE; /* error */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue