mirror of
https://github.com/curl/curl.git
synced 2026-07-23 19:37:17 +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
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "urldata.h"
|
||||
|
||||
#define MEMDEBUG_NODEFINES /* don't redefine the standard functions */
|
||||
#define MEMDEBUG_NODEFINES /* do not redefine the standard functions */
|
||||
|
||||
/* The last 3 #include files should be in this order */
|
||||
#include "curl_printf.h"
|
||||
|
|
@ -44,8 +44,8 @@ struct memdebug {
|
|||
double d;
|
||||
void *p;
|
||||
} mem[1];
|
||||
/* I'm hoping this is the thing with the strictest alignment
|
||||
* requirements. That also means we waste some space :-( */
|
||||
/* I am hoping this is the thing with the strictest alignment
|
||||
* requirements. That also means we waste some space :-( */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
@ -53,7 +53,7 @@ struct memdebug {
|
|||
* remain so. For advanced analysis, record a log file and write perl scripts
|
||||
* to analyze them!
|
||||
*
|
||||
* Don't use these with multithreaded test programs!
|
||||
* Do not use these with multithreaded test programs!
|
||||
*/
|
||||
|
||||
FILE *curl_dbg_logfile = NULL;
|
||||
|
|
@ -75,7 +75,7 @@ static void curl_dbg_cleanup(void)
|
|||
curl_dbg_logfile = NULL;
|
||||
}
|
||||
|
||||
/* this sets the log file name */
|
||||
/* this sets the log filename */
|
||||
void curl_dbg_memdebug(const char *logname)
|
||||
{
|
||||
if(!curl_dbg_logfile) {
|
||||
|
|
@ -84,7 +84,7 @@ void curl_dbg_memdebug(const char *logname)
|
|||
else
|
||||
curl_dbg_logfile = stderr;
|
||||
#ifdef MEMDEBUG_LOG_SYNC
|
||||
/* Flush the log file after every line so the log isn't lost in a crash */
|
||||
/* Flush the log file after every line so the log is not lost in a crash */
|
||||
if(curl_dbg_logfile)
|
||||
setbuf(curl_dbg_logfile, (char *)NULL);
|
||||
#endif
|
||||
|
|
@ -103,7 +103,7 @@ void curl_dbg_memlimit(long limit)
|
|||
}
|
||||
}
|
||||
|
||||
/* returns TRUE if this isn't allowed! */
|
||||
/* returns TRUE if this is not allowed! */
|
||||
static bool countcheck(const char *func, int line, const char *source)
|
||||
{
|
||||
/* if source is NULL, then the call is made internally and this check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue