Changeset 1258 for libcaca


Ignore:
Timestamp:
Oct 29, 2006, 11:07:07 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Add back cucul_set_color() and cucul_set_truecolor() but mark them as deprecated using GCC attributes.
Location:
libcaca/trunk/cucul
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/colour.c

    r1257 r1258  
    2626#include "cucul.h"
    2727#include "cucul_internals.h"
    28 
    29 /* Legacy stuff from old versions */
    30 int cucul_set_color(cucul_canvas_t *, unsigned char, unsigned char);
    31 int cucul_set_truecolor(cucul_canvas_t *, unsigned int, unsigned int);
    3228
    3329/** \brief Set the default character attribute.
  • libcaca/trunk/cucul/cucul.h

    r1257 r1258  
    238238/*  @} */
    239239
    240 /* Legacy macros */
    241 #define CUCUL_COLOR_BLACK CUCUL_BLACK
    242 #define CUCUL_COLOR_BLUE CUCUL_BLUE
    243 #define CUCUL_COLOR_GREEN CUCUL_GREEN
    244 #define CUCUL_COLOR_CYAN CUCUL_CYAN
    245 #define CUCUL_COLOR_RED CUCUL_RED
    246 #define CUCUL_COLOR_MAGENTA CUCUL_MAGENTA
    247 #define CUCUL_COLOR_BROWN CUCUL_BROWN
    248 #define CUCUL_COLOR_LIGHTGRAY CUCUL_LIGHTGRAY
    249 #define CUCUL_COLOR_DARKGRAY CUCUL_DARKGRAY
    250 #define CUCUL_COLOR_LIGHTBLUE CUCUL_LIGHTBLUE
    251 #define CUCUL_COLOR_LIGHTGREEN CUCUL_LIGHTGREEN
    252 #define CUCUL_COLOR_LIGHTCYAN CUCUL_LIGHTCYAN
    253 #define CUCUL_COLOR_LIGHTRED CUCUL_LIGHTRED
    254 #define CUCUL_COLOR_LIGHTMAGENTA CUCUL_LIGHTMAGENTA
    255 #define CUCUL_COLOR_YELLOW CUCUL_YELLOW
    256 #define CUCUL_COLOR_WHITE CUCUL_YELLOW
    257 #define CUCUL_COLOR_DEFAULT CUCUL_DEFAULT
    258 #define CUCUL_COLOR_TRANSPARENT CUCUL_TRANSPARENT
     240#if !defined(_DOXYGEN_SKIP_ME)
     241/* Legacy stuff from beta versions */
     242#   ifdef __GNUC__
     243#       define CUCUL_DEPRECATED __attribute__ ((deprecated))
     244#   else
     245#       define CUCUL_DEPRECATED
     246#   endif
     247int cucul_set_color(cucul_canvas_t *, unsigned char,
     248                                      unsigned char) CUCUL_DEPRECATED;
     249int cucul_set_truecolor(cucul_canvas_t *, unsigned int,
     250                                          unsigned int) CUCUL_DEPRECATED;
     251#   define CUCUL_COLOR_BLACK CUCUL_BLACK
     252#   define CUCUL_COLOR_BLUE CUCUL_BLUE
     253#   define CUCUL_COLOR_GREEN CUCUL_GREEN
     254#   define CUCUL_COLOR_CYAN CUCUL_CYAN
     255#   define CUCUL_COLOR_RED CUCUL_RED
     256#   define CUCUL_COLOR_MAGENTA CUCUL_MAGENTA
     257#   define CUCUL_COLOR_BROWN CUCUL_BROWN
     258#   define CUCUL_COLOR_LIGHTGRAY CUCUL_LIGHTGRAY
     259#   define CUCUL_COLOR_DARKGRAY CUCUL_DARKGRAY
     260#   define CUCUL_COLOR_LIGHTBLUE CUCUL_LIGHTBLUE
     261#   define CUCUL_COLOR_LIGHTGREEN CUCUL_LIGHTGREEN
     262#   define CUCUL_COLOR_LIGHTCYAN CUCUL_LIGHTCYAN
     263#   define CUCUL_COLOR_LIGHTRED CUCUL_LIGHTRED
     264#   define CUCUL_COLOR_LIGHTMAGENTA CUCUL_LIGHTMAGENTA
     265#   define CUCUL_COLOR_YELLOW CUCUL_YELLOW
     266#   define CUCUL_COLOR_WHITE CUCUL_YELLOW
     267#   define CUCUL_COLOR_DEFAULT CUCUL_DEFAULT
     268#   define CUCUL_COLOR_TRANSPARENT CUCUL_TRANSPARENT
     269#endif
    259270
    260271#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.