libansilove

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

commit 2a6f3ae858eb862fb2dbf09ec11ccb2a40aa186e
parent ab8b6d0e849bcff7649464618f929be4b7410cee
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 26 Dec 2017 00:44:12 +0100

Remove separate headers for each loader

Diffstat:
Msrc/loaders/ansi.c | 16+++++++++++++---
Dsrc/loaders/ansi.h | 31-------------------------------
Msrc/loaders/artworx.c | 2+-
Dsrc/loaders/artworx.h | 19-------------------
Msrc/loaders/binary.c | 2+-
Dsrc/loaders/binary.h | 20--------------------
Msrc/loaders/icedraw.c | 2+-
Dsrc/loaders/icedraw.h | 20--------------------
Msrc/loaders/pcboard.c | 11++++++++++-
Dsrc/loaders/pcboard.h | 28----------------------------
Msrc/loaders/tundra.c | 2+-
Dsrc/loaders/tundra.h | 19-------------------
Msrc/loaders/xbin.c | 2+-
Dsrc/loaders/xbin.h | 19-------------------
14 files changed, 28 insertions(+), 165 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -11,9 +11,19 @@ #define _XOPEN_SOURCE 700 #define _NETBSD_SOURCE -#include <string.h> - -#include "ansi.h" +#include "../ansilove.h" + +// Character structure +struct ansiChar { + int32_t column; + int32_t row; + int32_t background; + int32_t foreground; + int32_t current_character; + bool bold; + bool italics; + bool underline; +}; void ansi(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, char *font, int32_t bits, char *mode, bool icecolors, char *fext, int retinaScaleFactor) { diff --git a/src/loaders/ansi.h b/src/loaders/ansi.h @@ -1,31 +0,0 @@ -// -// ansi.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef ansi_h -#define ansi_h - -// Character structure -struct ansiChar { - int32_t column; - int32_t row; - int32_t background; - int32_t foreground; - int32_t current_character; - bool bold; - bool italics; - bool underline; -}; - -void ansi(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, char *font, int32_t bits, char *mode, bool icecolors, char *fext, int retinaScaleFactor); - -#endif diff --git a/src/loaders/artworx.c b/src/loaders/artworx.c @@ -9,7 +9,7 @@ // See the LICENSE file for details. // -#include "artworx.h" +#include "../ansilove.h" void artworx(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int retinaScaleFactor) { diff --git a/src/loaders/artworx.h b/src/loaders/artworx.h @@ -1,19 +0,0 @@ -// -// artworx.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef artworx_h -#define artworx_h - -void artworx(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int retinaScaleFactor); - -#endif diff --git a/src/loaders/binary.c b/src/loaders/binary.c @@ -9,7 +9,7 @@ // See the LICENSE file for details. // -#include "binary.h" +#include "../ansilove.h" void binary(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int32_t columns, char *font, int32_t bits, bool icecolors, int retinaScaleFactor) { diff --git a/src/loaders/binary.h b/src/loaders/binary.h @@ -1,20 +0,0 @@ -// -// binary.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef binary_h -#define binary_h - -void binary(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int32_t columns, char *font, int32_t bits, bool icecolors, int retinaScaleFactor); - -#endif - diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c @@ -9,7 +9,7 @@ // See the LICENSE file for details. // -#include "icedraw.h" +#include "../ansilove.h" void icedraw(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int retinaScaleFactor) { diff --git a/src/loaders/icedraw.h b/src/loaders/icedraw.h @@ -1,20 +0,0 @@ -// -// icedraw.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef icedraw_h -#define icedraw_h - -void icedraw(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int retinaScaleFactor); - -#endif - diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -9,7 +9,16 @@ // See the LICENSE file for details. // -#include "pcboard.h" +#include "../ansilove.h" + +// Character structure +struct pcbChar { + int32_t column; + int32_t row; + int32_t background; + int32_t foreground; + int32_t current_character; +}; void pcboard(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, char *font, int32_t bits, int retinaScaleFactor) { diff --git a/src/loaders/pcboard.h b/src/loaders/pcboard.h @@ -1,28 +0,0 @@ -// -// pcboard.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef pcboard_h -#define pcboard_h - -// Character structure -struct pcbChar { - int32_t column; - int32_t row; - int32_t background; - int32_t foreground; - int32_t current_character; -}; - -void pcboard(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, char *font, int32_t bits, int retinaScaleFactor); - -#endif diff --git a/src/loaders/tundra.c b/src/loaders/tundra.c @@ -9,7 +9,7 @@ // See the LICENSE file for details. // -#include "tundra.h" +#include "../ansilove.h" void tundra(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, char *font, int32_t bits, int retinaScaleFactor) { diff --git a/src/loaders/tundra.h b/src/loaders/tundra.h @@ -1,19 +0,0 @@ -// -// tundra.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef tundra_h -#define tundra_h - -void tundra(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, char *font, int32_t bits, int retinaScaleFactor); - -#endif diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -9,7 +9,7 @@ // See the LICENSE file for details. // -#include "xbin.h" +#include "../ansilove.h" void xbin(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int retinaScaleFactor) { diff --git a/src/loaders/xbin.h b/src/loaders/xbin.h @@ -1,19 +0,0 @@ -// -// xbin.h -// AnsiLove/C -// -// Copyright (C) 2011-2017 Stefan Vogt, Brian Cassidy, and Frederic Cambus. -// All rights reserved. -// -// This source code is licensed under the BSD 2-Clause License. -// See the LICENSE file for details. -// - -#include "../ansilove.h" - -#ifndef xbin_h -#define xbin_h - -void xbin(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFile, char *retinaout, int retinaScaleFactor); - -#endif