Ignore:
Timestamp:
Apr 19, 2008, 4:07:50 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Changed most "unsigned char" variables into "uint8_t", including in prototypes. As they are equivalent, this does not break the ABI.
Location:
libcaca/trunk/caca
Files:
3 edited

Legend:

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

    r2188 r2300  
    8484        struct { unsigned int ch; unsigned long int utf32; char utf8[8]; } key;
    8585    } data;
    86     unsigned char padding[16];
     86    uint8_t padding[16];
    8787};
    8888
  • libcaca/trunk/caca/driver_conio.c

    r2299 r2300  
    136136static int conio_get_event(caca_display_t *dp, caca_privevent_t *ev)
    137137{
    138     unsigned char ch;
     138    uint8_t ch;
    139139    caca_privevent_t release;
    140140
     
    149149    ev->type = CACA_EVENT_KEY_PRESS;
    150150    ev->data.key.ch = ch;
    151     ev->data.key.utf32 = (uint32_t)ch;
     151    ev->data.key.utf32 = ch;
    152152    ev->data.key.utf8[0] = ch;
    153153    ev->data.key.utf8[1] = '\0';
  • libcaca/trunk/caca/driver_gl.c

    r2299 r2300  
    7171    unsigned long int const *blocks;
    7272    int *txid;
    73     unsigned char close;
    74     unsigned char bit;
    75     unsigned char mouse_changed, mouse_clicked;
     73    uint8_t close;
     74    uint8_t bit;
     75    uint8_t mouse_changed, mouse_clicked;
    7676    unsigned int mouse_x, mouse_y;
    7777    unsigned int mouse_button, mouse_state;
    7878
    79     unsigned char key;
     79    uint8_t key;
    8080    int special_key;
    8181
Note: See TracChangeset for help on using the changeset viewer.