ansilove

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

commit bb146978a4e76bc314a4586ffd937ac71d99eb27
parent d1757836d9773e723a5bb003c0a801c7d89d7719
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 31 Dec 2015 17:11:53 +0100

Remove support for configurable diz extensions

Diffstat:
Msrc/alconfig.h | 2--
Msrc/ansilove.c | 16++++------------
2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/src/alconfig.h b/src/alconfig.h @@ -15,8 +15,6 @@ // configuration defines #define VERSION "3.0.0" -#define DIZ_EXTENSIONS ".diz,.ion" - #define SUBSTITUTE_BREAK "1" #define WRAP_COLUMN_80 "1" diff --git a/src/ansilove.c b/src/ansilove.c @@ -242,18 +242,10 @@ void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_ // close input file, we don't need it anymore rewind(input_file); fclose(input_file); - - // create array of DIZ extensions - char **dizArray; - int32_t dizCount, i; - - dizCount = explode(&dizArray, ',', DIZ_EXTENSIONS); - - // compare current file extension with the ones in our DIZ array - for (i = 0; i < dizCount; i++) { - if (!strcmp(fext, dizArray[i])) { - isDizFile = true; - } + + // check if current file has a .diz extension + if (!strcmp(fext, ".diz")) { + isDizFile = true; } // libgd image pointers