~ubuntu-branches/ubuntu/raring/libcaca/raring

« back to all changes in this revision

Viewing changes to caca/caca0.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar
  • Date: 2010-02-08 01:40:59 UTC
  • mfrom: (1.1.8 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100208014059-9q4av8pze8p7uw3i
Tags: 0.99.beta17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
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
5
5
 *
6
 
 *  $Id$
7
 
 *
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
23
21
#include <caca.h>
24
22
 
25
23
#undef __extern
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)
29
29
#else
30
30
#   define __extern extern
31
31
#endif
56
56
__extern unsigned char __caca0_fg;
57
57
__extern unsigned char __caca0_bg;
58
58
 
 
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
 
76
 
59
77
/* These enums and macros changed names or values */
60
 
enum caca_color
61
 
{
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,
78
 
};
79
 
 
80
78
enum caca_feature
81
79
{
82
80
    CACA_BACKGROUND       = 0x10,
205
203
}
206
204
#endif
207
205
 
 
206
#undef __extern
 
207
 
208
208
#endif /* __CACA0_H__ */