ansilove

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

commit 65834eb89a4742c9e89f3f0f801702bded1a0529
parent f07ed47072fec21c0ae753bda0782b78e7a7163c
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 17 Jan 2016 16:44:18 +0100

Simplifying loader names for all supported formats

Diffstat:
Msrc/ansi.c | 2+-
Msrc/ansi.h | 2+-
Msrc/artworx.c | 2+-
Msrc/artworx.h | 2+-
Msrc/binary.c | 2+-
Msrc/binary.h | 2+-
Msrc/icedraw.c | 2+-
Msrc/icedraw.h | 2+-
Msrc/main.c | 14+++++++-------
Msrc/pcboard.c | 2+-
Msrc/pcboard.h | 2+-
Msrc/tundra.c | 2+-
Msrc/tundra.h | 2+-
Msrc/xbin.c | 2+-
Msrc/xbin.h | 2+-
15 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/ansi.c b/src/ansi.c @@ -12,7 +12,7 @@ #include "ansilove.h" #include "ansi.h" -void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep) +void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep) { // ladies and gentlemen, it's type declaration time struct fontStruct fontData; diff --git a/src/ansi.h b/src/ansi.h @@ -24,6 +24,6 @@ struct ansiChar { bool underline; }; -void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep); +void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep); #endif diff --git a/src/artworx.c b/src/artworx.c @@ -11,7 +11,7 @@ #include "ansilove.h" -void alArtworxLoader(char *input, char *output, char *retinaout, bool createRetinaRep) +void artworx(char *input, char *output, char *retinaout, bool createRetinaRep) { const unsigned char *font_data; unsigned char *font_data_adf; diff --git a/src/artworx.h b/src/artworx.h @@ -12,6 +12,6 @@ #ifndef artworx_h #define artworx_h -void alArtworxLoader(char *input, char *output, char *retinaout, bool createRetinaRep); +void artworx(char *input, char *output, char *retinaout, bool createRetinaRep); #endif diff --git a/src/binary.c b/src/binary.c @@ -11,7 +11,7 @@ #include "ansilove.h" -void alBinaryLoader(char *input, char *output, char *retinaout, int32_t int_columns, char *font, int32_t int_bits, bool icecolors, bool createRetinaRep) +void binary(char *input, char *output, char *retinaout, int32_t int_columns, char *font, int32_t int_bits, bool icecolors, bool createRetinaRep) { // some type declarations struct fontStruct fontData; diff --git a/src/binary.h b/src/binary.h @@ -12,7 +12,7 @@ #ifndef binary_h #define binary_h -void alBinaryLoader(char *input, char *output, char *retinaout, int32_t int_columns, char *font, int32_t int_bits, bool icecolors, bool createRetinaRep); +void binary(char *input, char *output, char *retinaout, int32_t int_columns, char *font, int32_t int_bits, bool icecolors, bool createRetinaRep); #endif diff --git a/src/icedraw.c b/src/icedraw.c @@ -11,7 +11,7 @@ #include "ansilove.h" -void alIcedrawLoader(char *input, char *output, char *retinaout, bool fileHasSAUCE, bool createRetinaRep) +void icedraw(char *input, char *output, char *retinaout, bool fileHasSAUCE, bool createRetinaRep) { const unsigned char *font_data; unsigned char *font_data_idf; diff --git a/src/icedraw.h b/src/icedraw.h @@ -12,7 +12,7 @@ #ifndef icedraw_h #define icedraw_h -void alIcedrawLoader(char *input, char *output, char *retinaout, bool fileHasSAUCE, bool createRetinaRep); +void icedraw(char *input, char *output, char *retinaout, bool fileHasSAUCE, bool createRetinaRep); #endif diff --git a/src/main.c b/src/main.c @@ -268,27 +268,27 @@ int main(int argc, char *argv[]) { // create the output file by invoking the appropiate function if (!strcmp(fext, ".pcb")) { // params: input, output, font, bits, icecolors - alPcBoardLoader(input, outputFile, retinaout, font, int_bits, createRetinaRep); + pcboard(input, outputFile, retinaout, font, int_bits, createRetinaRep); fileIsPCBoard = true; } else if (!strcmp(fext, ".bin")) { // params: input, output, columns, font, bits, icecolors - alBinaryLoader(input, outputFile, retinaout, int_columns, font, int_bits, icecolors, createRetinaRep); + binary(input, outputFile, retinaout, int_columns, font, int_bits, icecolors, createRetinaRep); fileIsBinary = true; } else if (!strcmp(fext, ".adf")) { // params: input, output, bits - alArtworxLoader(input, outputFile, retinaout, createRetinaRep); + artworx(input, outputFile, retinaout, createRetinaRep); } else if (!strcmp(fext, ".idf")) { // params: input, output, bits - alIcedrawLoader(input, outputFile, retinaout, fileHasSAUCE, createRetinaRep); + icedraw(input, outputFile, retinaout, fileHasSAUCE, createRetinaRep); } else if (!strcmp(fext, ".tnd")) { - alTundraLoader(input, outputFile, retinaout, font, int_bits, fileHasSAUCE, createRetinaRep); + tundra(input, outputFile, retinaout, font, int_bits, fileHasSAUCE, createRetinaRep); fileIsTundra = true; } else if (!strcmp(fext, ".xb")) { // params: input, output, bits - alXbinLoader(input, outputFile, retinaout, createRetinaRep); + xbin(input, outputFile, retinaout, createRetinaRep); } else { // params: input, output, font, bits, icecolors, fext - alAnsiLoader(input, outputFile, retinaout, font, int_bits, mode, icecolors, fext, createRetinaRep); + ansi(input, outputFile, retinaout, font, int_bits, mode, icecolors, fext, createRetinaRep); fileIsANSi = true; } diff --git a/src/pcboard.c b/src/pcboard.c @@ -12,7 +12,7 @@ #include "ansilove.h" #include "pcboard.h" -void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool createRetinaRep) +void pcboard(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool createRetinaRep) { // some type declarations struct fontStruct fontData; diff --git a/src/pcboard.h b/src/pcboard.h @@ -21,6 +21,6 @@ struct pcbChar { int32_t current_character; }; -void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool createRetinaRep); +void pcboard(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool createRetinaRep); #endif diff --git a/src/tundra.c b/src/tundra.c @@ -11,7 +11,7 @@ #include "ansilove.h" -void alTundraLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool fileHasSAUCE, bool createRetinaRep) +void tundra(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool fileHasSAUCE, bool createRetinaRep) { // some type declarations struct fontStruct fontData; diff --git a/src/tundra.h b/src/tundra.h @@ -12,6 +12,6 @@ #ifndef tundra_h #define tundra_h -void alTundraLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool fileHasSAUCE, bool createRetinaRep); +void tundra(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool fileHasSAUCE, bool createRetinaRep); #endif diff --git a/src/xbin.c b/src/xbin.c @@ -11,7 +11,7 @@ #include "ansilove.h" -void alXbinLoader(char *input, char *output, char *retinaout, bool createRetinaRep) +void xbin(char *input, char *output, char *retinaout, bool createRetinaRep) { const unsigned char *font_data; unsigned char *font_data_xbin; diff --git a/src/xbin.h b/src/xbin.h @@ -12,6 +12,6 @@ #ifndef xbin_h #define xbin_h -void alXbinLoader(char *input, char *output, char *retinaout, bool createRetinaRep); +void xbin(char *input, char *output, char *retinaout, bool createRetinaRep); #endif