ansilove

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

commit 30201d443128e974504495226ecd48d47ae006cf
parent d68f2bd933c070765842c10e1b6b9aad31a78501
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 22 Jul 2016 12:18:02 +0200

Modifying ANSI loader function prototype to pass input file buffer instead of the input file name

Diffstat:
Msrc/loaders/ansi.c | 2+-
Msrc/loaders/ansi.h | 2+-
Msrc/main.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -11,7 +11,7 @@ #include "ansi.h" -void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep) +void ansi(unsigned char *input_file_buffer, int32_t input_file_size, 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/loaders/ansi.h b/src/loaders/ansi.h @@ -26,6 +26,6 @@ struct ansiChar { bool underline; }; -void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep); +void ansi(unsigned char *input_file_buffer, int32_t input_file_size, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep); #endif diff --git a/src/main.c b/src/main.c @@ -335,7 +335,7 @@ int main(int argc, char *argv[]) { xbin(input, outputFile, retinaout, createRetinaRep); } else { // params: input, output, font, bits, icecolors, fext - ansi(input, outputFile, retinaout, font, int_bits, mode, icecolors, fext, createRetinaRep); + ansi(input_file_buffer, input_file_size, outputFile, retinaout, font, int_bits, mode, icecolors, fext, createRetinaRep); fileIsANSi = true; }