Ignore:
Timestamp:
Apr 19, 2008, 9:25:41 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Changed most of the long ints in the API into C99 types. WARNING: this completely breaks compatibility with previous versions of libcaca on 64-bit systems.
Location:
libcaca/trunk/caca
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r2300 r2303  
    8282        struct { unsigned int x, y, button; } mouse;
    8383        struct { unsigned int w, h; } resize;
    84         struct { unsigned int ch; unsigned long int utf32; char utf8[8]; } key;
     84        struct { unsigned int ch; uint32_t utf32; char utf8[8]; } key;
    8585    } data;
    8686    uint8_t padding[16];
     
    193193__extern enum caca_event_type caca_get_event_type(caca_event_t const *);
    194194__extern unsigned int caca_get_event_key_ch(caca_event_t const *);
    195 __extern unsigned long int caca_get_event_key_utf32(caca_event_t const *);
     195__extern uint32_t caca_get_event_key_utf32(caca_event_t const *);
    196196__extern int caca_get_event_key_utf8(caca_event_t const *, char *);
    197197__extern unsigned int caca_get_event_mouse_button(caca_event_t const *);
  • libcaca/trunk/caca/driver_gl.c

    r2300 r2303  
    6969    float font_width, font_height;
    7070    float incx, incy;
    71     unsigned long int const *blocks;
     71    uint32_t const *blocks;
    7272    int *txid;
    7373    uint8_t close;
  • libcaca/trunk/caca/event.c

    r2299 r2303  
    216216 *  \return The key's Unicode value.
    217217 */
    218 unsigned long int caca_get_event_key_utf32(caca_event_t const *ev)
     218uint32_t caca_get_event_key_utf32(caca_event_t const *ev)
    219219{
    220220    return ((caca_privevent_t const *)ev)->data.key.utf32;
Note: See TracChangeset for help on using the changeset viewer.