Removed (pretty inconsistently used) tab chars from source code base.

This commit is contained in:
Oliver Schmidt
2013-05-09 13:56:54 +02:00
parent 44fd1082ae
commit 85885001b1
1773 changed files with 62864 additions and 62868 deletions

View File

@@ -1,6 +1,6 @@
/*****************************************************************************/
/* */
/* main.c */
/* main.c */
/* */
/* Main program of the chrcvt vector font converter */
/* */
@@ -161,7 +161,7 @@
/*****************************************************************************/
/* Data */
/* Data */
/*****************************************************************************/
@@ -171,7 +171,7 @@ static unsigned FilesProcessed = 0;
/*****************************************************************************/
/* Code */
/* Code */
/*****************************************************************************/
@@ -180,23 +180,23 @@ static void Usage (void)
/* Print usage information and exit */
{
fprintf (stderr,
"Usage: %s [options] file [options] [file]\n"
"Short options:\n"
" -h\t\t\tHelp (this text)\n"
"Usage: %s [options] file [options] [file]\n"
"Short options:\n"
" -h\t\t\tHelp (this text)\n"
" -v\t\t\tBe more verbose\n"
" -V\t\t\tPrint the version number and exit\n"
"\n"
"Long options:\n"
" --help\t\tHelp (this text)\n"
" -V\t\t\tPrint the version number and exit\n"
"\n"
"Long options:\n"
" --help\t\tHelp (this text)\n"
" --verbose\t\tBe more verbose\n"
" --version\t\tPrint the version number and exit\n",
ProgName);
" --version\t\tPrint the version number and exit\n",
ProgName);
}
static void OptHelp (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
const char* Arg attribute ((unused)))
/* Print usage information and exit */
{
Usage ();
@@ -206,7 +206,7 @@ static void OptHelp (const char* Opt attribute ((unused)),
static void OptVerbose (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
const char* Arg attribute ((unused)))
/* Increase verbosity */
{
++Verbosity;
@@ -215,12 +215,12 @@ static void OptVerbose (const char* Opt attribute ((unused)),
static void OptVersion (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
const char* Arg attribute ((unused)))
/* Print the assembler version */
{
fprintf (stderr,
"%s V%s - (C) Copyright 2009, Ullrich von Bassewitz\n",
ProgName, GetVersionAsString ());
"%s V%s - (C) Copyright 2009, Ullrich von Bassewitz\n",
ProgName, GetVersionAsString ());
}
@@ -324,7 +324,7 @@ static void ConvertFile (const char* Input, const char* Output)
/* Try to open the file for reading */
FILE* F = fopen (Input, "rb");
if (F == 0) {
Error ("Cannot open input file `%s': %s", Input, strerror (errno));
Error ("Cannot open input file `%s': %s", Input, strerror (errno));
}
/* Seek to the end and determine the size */
@@ -434,7 +434,7 @@ static void ConvertFile (const char* Input, const char* Output)
/* Open the output file */
F = fopen (Output, "wb");
if (F == 0) {
Error ("Cannot open output file `%s': %s", Output, strerror (errno));
Error ("Cannot open output file `%s': %s", Output, strerror (errno));
}
/* Write the header to the output file */
@@ -473,9 +473,9 @@ int main (int argc, char* argv [])
{
/* Program long options */
static const LongOpt OptTab[] = {
{ "--help", 0, OptHelp },
{ "--verbose", 0, OptVerbose },
{ "--version", 0, OptVersion },
{ "--help", 0, OptHelp },
{ "--verbose", 0, OptVerbose },
{ "--version", 0, OptVersion },
};
unsigned I;
@@ -487,47 +487,47 @@ int main (int argc, char* argv [])
I = 1;
while (I < ArgCount) {
/* Get the argument */
const char* Arg = ArgVec[I];
/* Get the argument */
const char* Arg = ArgVec[I];
/* Check for an option */
if (Arg [0] == '-') {
switch (Arg [1]) {
/* Check for an option */
if (Arg [0] == '-') {
switch (Arg [1]) {
case '-':
LongOption (&I, OptTab, sizeof(OptTab)/sizeof(OptTab[0]));
break;
case '-':
LongOption (&I, OptTab, sizeof(OptTab)/sizeof(OptTab[0]));
break;
case 'h':
OptHelp (Arg, 0);
break;
case 'h':
OptHelp (Arg, 0);
break;
case 'v':
OptVerbose (Arg, 0);
break;
case 'v':
OptVerbose (Arg, 0);
break;
case 'V':
OptVersion (Arg, 0);
break;
case 'V':
OptVersion (Arg, 0);
break;
default:
UnknownOption (Arg);
break;
default:
UnknownOption (Arg);
break;
}
} else {
/* Filename. Dump it. */
ConvertFile (Arg, 0);
++FilesProcessed;
}
}
} else {
/* Filename. Dump it. */
ConvertFile (Arg, 0);
++FilesProcessed;
}
/* Next argument */
++I;
/* Next argument */
++I;
}
/* Print a message if we did not process any files */
if (FilesProcessed == 0) {
fprintf (stderr, "%s: No input files\n", ProgName);
fprintf (stderr, "%s: No input files\n", ProgName);
}
/* Success */