mirror of
https://github.com/zyphlar/bdf2c.git
synced 2024-03-08 13:47:46 +00:00
Indent.
This commit is contained in:
parent
962a0170f8
commit
d28eb799b7
30
bdf2c.c
30
bdf2c.c
|
@ -17,7 +17,7 @@
|
||||||
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
/// GNU Affero General Public License for more details.
|
/// GNU Affero General Public License for more details.
|
||||||
///
|
///
|
||||||
/// $Id: $
|
/// $Id$
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -52,20 +52,20 @@ void CreateFontHeaderFile(FILE * out)
|
||||||
//
|
//
|
||||||
// Read BDF font file.
|
// Read BDF font file.
|
||||||
//
|
//
|
||||||
void ReadBdf(FILE* bdf)
|
void ReadBdf(FILE * bdf)
|
||||||
{
|
{
|
||||||
char linebuf[1024];
|
char linebuf[1024];
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if ( !fgets(linebuf, sizeof(linebuf), bdf) ) { // EOF
|
if (!fgets(linebuf, sizeof(linebuf), bdf)) { // EOF
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
if ( !(s = strtok(linebuf, " \t\n\r")) ) { // empty line
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
printf("token:%s\n", s);
|
|
||||||
}
|
}
|
||||||
|
if (!(s = strtok(linebuf, " \t\n\r"))) { // empty line
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
printf("token:%s\n", s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -85,10 +85,8 @@ void PrintVersion(void)
|
||||||
//
|
//
|
||||||
void PrintUsage(void)
|
void PrintUsage(void)
|
||||||
{
|
{
|
||||||
printf("Usage: bdf2c [OPTIONs]\n"
|
printf("Usage: bdf2c [OPTIONs]\n" "\t-c\tCreate font header on stdout\n"
|
||||||
"\t-c\tCreate font header on stdout\n"
|
"\t-C file\tCreate font header file\n");
|
||||||
"\t-C file\tCreate font header file\n"
|
|
||||||
);
|
|
||||||
printf("\tOnly idiots print usage on stderr\n");
|
printf("\tOnly idiots print usage on stderr\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user