libansilove

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

commit dd4bb1e9789199c6605b2ac69d7970ba763b3b68
parent 462cae36f7eec9f295e0a11877fc39e1731b7fb3
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 18 Oct 2018 16:46:50 +0200

Change return type of ansilove_init() to int

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

diff --git a/include/ansilove.h b/include/ansilove.h @@ -78,7 +78,7 @@ struct ansilove_options { uint32_t retinaScaleFactor; }; -void ansilove_init(struct ansilove_ctx *, struct ansilove_options *); +int ansilove_init(struct ansilove_ctx *, struct ansilove_options *); int ansilove_loadfile(struct ansilove_ctx *, char *); int ansilove_savefile(struct ansilove_ctx *, char *); diff --git a/src/init.c b/src/init.c @@ -11,11 +11,13 @@ #include "ansilove.h" -void +int ansilove_init(struct ansilove_ctx *ctx, struct ansilove_options *options) { memset(ctx, 0, sizeof(*ctx)); memset(options, 0, sizeof(*options)); // default to 8 if bits option is not specified options->bits = 8; + + return 0; }