Whitespace: Automated whitespace fixes (large commit)

Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
This commit is contained in:
Angus Gratton
2020-11-10 18:40:01 +11:00
committed by bot
parent e82eac4354
commit 66fb5a29bb
1975 changed files with 9433 additions and 10476 deletions
-1
View File
@@ -23,4 +23,3 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+12 -13
View File
@@ -102,7 +102,7 @@ enum
#define ARG_LOG(x) \
do { if (ARG_ENABLE_LOG) dbg_printf x; } while (0)
#endif
#endif
extern void dbg_printf(const char *fmt, ...);
@@ -242,7 +242,7 @@ extern int optopt;
extern int optreset;
extern char *suboptarg; /* getsubopt(3) external variable */
#endif /* _GETOPT_DEFINED */
#ifdef __cplusplus
}
#endif
@@ -1522,7 +1522,7 @@ static int arg_dbl_scanfn(struct arg_dbl *parent, const char *argval)
static int arg_dbl_checkfn(struct arg_dbl *parent)
{
int errorcode = (parent->count < parent->hdr.mincount) ? EMINCOUNT : 0;
ARG_TRACE(("%s:checkfn(%p) returns %d\n", __FILE__, parent, errorcode));
return errorcode;
}
@@ -1632,7 +1632,7 @@ struct arg_dbl * arg_dbln(
result->count = 0;
}
ARG_TRACE(("arg_dbln() returns %p\n", result));
return result;
}
@@ -1712,7 +1712,7 @@ static void arg_end_errorfn(
fprintf(fp, "invalid option \"-%c\"", error);
break;
}
fputc('\n', fp);
}
@@ -1908,7 +1908,7 @@ static int arg_file_scanfn(struct arg_file *parent, const char *argval)
static int arg_file_checkfn(struct arg_file *parent)
{
int errorcode = (parent->count < parent->hdr.mincount) ? EMINCOUNT : 0;
ARG_TRACE(("%s:checkfn(%p) returns %d\n", __FILE__, parent, errorcode));
return errorcode;
}
@@ -2019,7 +2019,7 @@ struct arg_file * arg_filen(
result->extension[i] = "";
}
}
ARG_TRACE(("arg_filen() returns %p\n", result));
return result;
}
@@ -2362,7 +2362,7 @@ struct arg_int * arg_intn(
result->ival = (int *)(result + 1);
result->count = 0;
}
ARG_TRACE(("arg_intn() returns %p\n", result));
return result;
}
@@ -2510,7 +2510,7 @@ struct arg_lit * arg_litn(
/* init local variables */
result->count = 0;
}
ARG_TRACE(("arg_litn() returns %p\n", result));
return result;
}
@@ -3648,7 +3648,7 @@ static int arg_str_scanfn(struct arg_str *parent, const char *argval)
static int arg_str_checkfn(struct arg_str *parent)
{
int errorcode = (parent->count < parent->hdr.mincount) ? EMINCOUNT : 0;
ARG_TRACE(("%s:checkfn(%p) returns %d\n", __FILE__, parent, errorcode));
return errorcode;
}
@@ -3750,7 +3750,7 @@ struct arg_str * arg_strn(
for (i = 0; i < maxcount; i++)
result->sval[i] = "";
}
ARG_TRACE(("arg_strn() returns %p\n", result));
return result;
}
@@ -4291,7 +4291,7 @@ int arg_parse(int argc, char * *argv, void * *argtable)
argvcopy[i] = argv[i];
argvcopy[argc] = NULL;
/* parse the command line (local copy) for tagged options */
arg_parse_tagged(argc, argvcopy, table, endtable);
@@ -4953,4 +4953,3 @@ void arg_freetable(void * *argtable, size_t n)
table[tabindex] = NULL;
};
}
+2 -2
View File
@@ -39,7 +39,7 @@ extern "C" {
#endif
#define ARG_REX_ICASE 1
/* bit masks for arg_hdr.flag */
enum
{
@@ -218,7 +218,7 @@ struct arg_str* arg_str0(const char* shortopts,
const char* datatype,
const char* glossary);
struct arg_str* arg_str1(const char* shortopts,
const char* longopts,
const char* longopts,
const char* datatype,
const char *glossary);
struct arg_str* arg_strn(const char* shortopts,