From d28eb799b7174ebcd3c67cf247a9f576cfd24abc Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 26 Jan 2009 13:34:30 +0100 Subject: [PATCH] Indent. --- bdf2c.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/bdf2c.c b/bdf2c.c index 3de1799..46583ba 100644 --- a/bdf2c.c +++ b/bdf2c.c @@ -17,7 +17,7 @@ /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the /// GNU Affero General Public License for more details. /// -/// $Id: $ +/// $Id$ ////////////////////////////////////////////////////////////////////////////// #include @@ -52,20 +52,20 @@ void CreateFontHeaderFile(FILE * out) // // Read BDF font file. // -void ReadBdf(FILE* bdf) +void ReadBdf(FILE * bdf) { - char linebuf[1024]; - char *s; + char linebuf[1024]; + char *s; - for (;;) { - if ( !fgets(linebuf, sizeof(linebuf), bdf) ) { // EOF - break; - } - if ( !(s = strtok(linebuf, " \t\n\r")) ) { // empty line - break; - } - printf("token:%s\n", s); + for (;;) { + if (!fgets(linebuf, sizeof(linebuf), bdf)) { // EOF + break; } + 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) { - printf("Usage: bdf2c [OPTIONs]\n" - "\t-c\tCreate font header on stdout\n" - "\t-C file\tCreate font header file\n" - ); + printf("Usage: bdf2c [OPTIONs]\n" "\t-c\tCreate font header on stdout\n" + "\t-C file\tCreate font header file\n"); printf("\tOnly idiots print usage on stderr\n"); }