ansilove

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

commit 7d8e0e74dbf190612e61734c07c52311df00955a
parent ca9109f59b384102ad52c45e5a34681c1a7cdd17
Author: ByteProject <stefan.vogt@byteproject.net>
Date:   Tue, 28 Feb 2012 01:54:19 +0100

struct ansiChar and MIN macro

Diffstat:
Mansilove/ansilove.h | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/ansilove/ansilove.h b/ansilove/ansilove.h @@ -36,6 +36,10 @@ #ifndef ansilove_h #define ansilove_h +#if !defined(MIN) +#define MIN(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __a : __b; }) +#endif + // prototypes void alAnsiLoader(char *input, char output[], char font[], char bits[], char icecolors[], char *fext); void alPcBoardLoader(char *input, char output[], char font[], char bits[]); @@ -57,6 +61,18 @@ struct pcbChar { int32_t current_character; }; +struct ansiChar { + int32_t position_x; + int32_t position_y_0xFF; + int32_t position_y_bitshift_8; + int32_t color_background; + int32_t color_foreground; + int32_t current_character; + bool bold; + bool italics; + bool underline; +} ; + // sauce records #define RECORD_SIZE 128 #define COMMENT_SIZE 64