Changeset 1069


Ignore:
Timestamp:
May 20, 2008 11:22:31 PM (5 years ago)
Author:
dkg
Message:

xdotool: explicitly marking the type of some KeyCodes instead of using int

Location:
trunk/xdotool
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xdotool/xdo.c

    r1068 r1069  
    2626static int _xdo_has_xtest(xdo_t *xdo); 
    2727 
    28 static int _xdo_keycode_from_char(xdo_t *xdo, char key); 
     28static KeyCode _xdo_keycode_from_char(xdo_t *xdo, char key); 
    2929static int _xdo_get_shiftcode_if_needed(xdo_t *xdo, char key); 
    3030 
     
    269269  int i = 0; 
    270270  char key = '0'; 
    271   uint keycode = 0; 
     271  KeyCode keycode = 0; 
    272272  uint shiftcode = 0; 
    273273 
     
    337337 
    338338/* Helper functions */ 
    339 static int _xdo_keycode_from_char(xdo_t *xdo, char key) { 
     339static KeyCode _xdo_keycode_from_char(xdo_t *xdo, char key) { 
    340340  int i = 0; 
    341341  int len = xdo->keycode_high - xdo->keycode_low; 
     
    345345      return xdo->charcodes[i].code; 
    346346 
    347   return -1; 
     347  return (KeyCode)-1; 
    348348} 
    349349 
  • trunk/xdotool/xdo.h

    r1068 r1069  
    2424typedef struct charcodemap { 
    2525  char key; 
    26   int code; 
     26  KeyCode code; 
    2727  int shift; 
    2828} charcodemap_t; 
Note: See TracChangeset for help on using the changeset viewer.