2
2
* libcaca Colour ASCII-Art library
3
* Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
3
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
4
4
* All Rights Reserved
8
6
* This library is free software. It comes without any warranty, to
9
7
* the extent permitted by applicable law. You can redistribute it
10
8
* and/or modify it under the terms of the Do What The Fuck You Want
26
#if defined(_DOXYGEN_SKIP_ME)
27
#elif defined(_WIN32) && defined(__LIBCACA__)
24
#if defined _DOXYGEN_SKIP_ME
25
#elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT
28
26
# define __extern extern __declspec(dllexport)
27
#elif defined _WIN32 && !defined __LIBCACA__
28
# define __extern extern __declspec(dllimport)
30
30
# define __extern extern
56
56
__extern unsigned char __caca0_fg;
57
57
__extern unsigned char __caca0_bg;
59
/* This enum still exists in libcaca 1.x, thus cannot be redefined */
60
#define CACA_COLOR_BLACK CACA_BLACK
61
#define CACA_COLOR_BLUE CACA_BLUE
62
#define CACA_COLOR_GREEN CACA_GREEN
63
#define CACA_COLOR_CYAN CACA_CYAN
64
#define CACA_COLOR_RED CACA_RED
65
#define CACA_COLOR_MAGENTA CACA_MAGENTA
66
#define CACA_COLOR_BROWN CACA_BROWN
67
#define CACA_COLOR_LIGHTGRAY CACA_LIGHTGRAY
68
#define CACA_COLOR_DARKGRAY CACA_DARKGRAY
69
#define CACA_COLOR_LIGHTBLUE CACA_LIGHTBLUE
70
#define CACA_COLOR_LIGHTGREEN CACA_LIGHTGREEN
71
#define CACA_COLOR_LIGHTCYAN CACA_LIGHTCYAN
72
#define CACA_COLOR_LIGHTRED CACA_LIGHTRED
73
#define CACA_COLOR_LIGHTMAGENTA CACA_LIGHTMAGENTA
74
#define CACA_COLOR_YELLOW CACA_YELLOW
75
#define CACA_COLOR_WHITE CACA_WHITE
59
77
/* These enums and macros changed names or values */
62
CACA_COLOR_BLACK = CACA_BLACK,
63
CACA_COLOR_BLUE = CACA_BLUE,
64
CACA_COLOR_GREEN = CACA_GREEN,
65
CACA_COLOR_CYAN = CACA_CYAN,
66
CACA_COLOR_RED = CACA_RED,
67
CACA_COLOR_MAGENTA = CACA_MAGENTA,
68
CACA_COLOR_BROWN = CACA_BROWN,
69
CACA_COLOR_LIGHTGRAY = CACA_LIGHTGRAY,
70
CACA_COLOR_DARKGRAY = CACA_DARKGRAY,
71
CACA_COLOR_LIGHTBLUE = CACA_LIGHTBLUE,
72
CACA_COLOR_LIGHTGREEN = CACA_LIGHTGREEN,
73
CACA_COLOR_LIGHTCYAN = CACA_LIGHTCYAN,
74
CACA_COLOR_LIGHTRED = CACA_LIGHTRED,
75
CACA_COLOR_LIGHTMAGENTA = CACA_LIGHTMAGENTA,
76
CACA_COLOR_YELLOW = CACA_YELLOW,
77
CACA_COLOR_WHITE = CACA_WHITE,
82
80
CACA_BACKGROUND = 0x10,