libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 8adab7b9944df791a9c09f17d35ecb643a4be7bb
parent 14523ee847f59cbb7f6495f2d406268307d64aa6
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon,  2 Jul 2018 10:42:10 +0200

Prefix all loaders with ansilove_, for namespacing

Diffstat:
Minclude/ansilove.h | 14+++++++-------
Msrc/loaders/ansi.c | 2+-
Msrc/loaders/artworx.c | 2+-
Msrc/loaders/binary.c | 2+-
Msrc/loaders/icedraw.c | 2+-
Msrc/loaders/pcboard.c | 2+-
Msrc/loaders/tundra.c | 2+-
Msrc/loaders/xbin.c | 2+-
8 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/include/ansilove.h b/include/ansilove.h @@ -33,12 +33,12 @@ struct output { uint32_t retinaScaleFactor; }; -int ansi(struct input *, struct output *); -int artworx(struct input *, struct output *); -int binary(struct input *, struct output *); -int icedraw(struct input *, struct output *); -int pcboard(struct input *, struct output *); -int tundra(struct input *, struct output *); -int xbin(struct input *, struct output *); +int ansilove_ansi(struct input *, struct output *); +int ansilove_artworx(struct input *, struct output *); +int ansilove_binary(struct input *, struct output *); +int ansilove_icedraw(struct input *, struct output *); +int ansilove_pcboard(struct input *, struct output *); +int ansilove_tundra(struct input *, struct output *); +int ansilove_xbin(struct input *, struct output *); #endif diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -25,7 +25,7 @@ struct ansiChar { bool underline; }; -int ansi(struct input *inputFile, struct output *outputFile) +int ansilove_ansi(struct input *inputFile, struct output *outputFile) { // ladies and gentlemen, it's type declaration time struct fontStruct fontData; diff --git a/src/loaders/artworx.c b/src/loaders/artworx.c @@ -11,7 +11,7 @@ #include "../ansilove.h" -int artworx(struct input *inputFile, struct output *outputFile) +int ansilove_artworx(struct input *inputFile, struct output *outputFile) { // libgd image pointers gdImagePtr canvas; diff --git a/src/loaders/binary.c b/src/loaders/binary.c @@ -11,7 +11,7 @@ #include "../ansilove.h" -int binary(struct input *inputFile, struct output *outputFile) +int ansilove_binary(struct input *inputFile, struct output *outputFile) { // binary files must have an even size if (inputFile->size % 2) { diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c @@ -11,7 +11,7 @@ #include "../ansilove.h" -int icedraw(struct input *inputFile, struct output *outputFile) +int ansilove_icedraw(struct input *inputFile, struct output *outputFile) { // extract relevant part of the IDF header, 16-bit endian unsigned short int32_t x2 = (inputFile->data[9] << 8) + inputFile->data[8]; diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -20,7 +20,7 @@ struct pcbChar { int32_t current_character; }; -int pcboard(struct input *inputFile, struct output *outputFile) +int ansilove_pcboard(struct input *inputFile, struct output *outputFile) { // some type declarations struct fontStruct fontData; diff --git a/src/loaders/tundra.c b/src/loaders/tundra.c @@ -11,7 +11,7 @@ #include "../ansilove.h" -int tundra(struct input *inputFile, struct output *outputFile) +int ansilove_tundra(struct input *inputFile, struct output *outputFile) { // some type declarations struct fontStruct fontData; diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -11,7 +11,7 @@ #include "../ansilove.h" -int xbin(struct input *inputFile, struct output *outputFile) +int ansilove_xbin(struct input *inputFile, struct output *outputFile) { const unsigned char *font_data; unsigned char *font_data_xbin = NULL;