ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit ac503637bd8ba8b613ea21c294bb7f66651d8720
parent 3d6e30c0811f02949ced2fd39f9c675c19d4b0ec
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 14 Jul 2016 00:16:15 +0200

Removing more whitespace

Diffstat:
Msrc/fonts.c | 3++-
Msrc/main.c | 6+++---
Msrc/sauce.c | 8++++----
Msrc/strtolower.h | 2+-
4 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/fonts.c b/src/fonts.c @@ -411,7 +411,8 @@ unsigned char font_pc_80x25[4096] = { 0x00, 0x6c, 0x36, 0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, 0x0c, 0x18, 0x32, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; unsigned char font_pc_80x50[2048] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x81, 0xa5, 0x81, 0xbd, 0x99, 0x81, 0x7e, diff --git a/src/main.c b/src/main.c @@ -116,7 +116,7 @@ void synopsis(void) { int main(int argc, char *argv[]) { printf("AnsiLove/C %s - ANSi / ASCII art to PNG converter\n"\ "Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.\n", VERSION); - + // SAUCE record related bool types bool justDisplaySAUCE = false; bool fileHasSAUCE = false; @@ -197,7 +197,7 @@ int main(int argc, char *argv[]) { return EXIT_SUCCESS; } - argc -= optind; + argc -= optind; argv += optind; // let's check the file for a valid SAUCE record @@ -311,7 +311,7 @@ int main(int argc, char *argv[]) { } // gather information and report to the command line - if (fileIsANSi || fileIsBinary || + if (fileIsANSi || fileIsBinary || fileIsPCBoard || fileIsTundra) { printf("Font: %s\n", font); printf("Bits: %d\n", int_bits); diff --git a/src/sauce.c b/src/sauce.c @@ -12,7 +12,7 @@ #include "sauce.h" // Reads SAUCE via a filename. -sauce *sauceReadFileName(char *fileName) +sauce *sauceReadFileName(char *fileName) { FILE *file = fopen(fileName, "r"); if (file == NULL) { @@ -25,7 +25,7 @@ sauce *sauceReadFileName(char *fileName) } // Read SAUCE via a FILE pointer. -sauce *sauceReadFile(FILE *file) +sauce *sauceReadFile(FILE *file) { sauce *record; record = malloc(sizeof *record); @@ -36,7 +36,7 @@ sauce *sauceReadFile(FILE *file) return record; } -void readRecord(FILE *file, sauce *record) +void readRecord(FILE *file, sauce *record) { if (fseek(file, 0 - RECORD_SIZE, SEEK_END) != EXIT_SUCCESS) { free(record); @@ -90,7 +90,7 @@ void readRecord(FILE *file, sauce *record) } } -void readComments(FILE *file, char **comment_lines, int32_t comments) +void readComments(FILE *file, char **comment_lines, int32_t comments) { int32_t i; diff --git a/src/strtolower.h b/src/strtolower.h @@ -16,7 +16,7 @@ #ifndef strtolower_h #define strtolower_h -// In-place modification of a string to be all lower case. +// In-place modification of a string to be all lower case. char *strtolower(char *str);