/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/xkeymap.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/branches/seamlessrdp-branch/rdesktop/xkeymap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 964 by astrand, Wed Aug 3 11:30:53 2005 UTC revision 965 by astrand, Wed Aug 3 11:47:20 2005 UTC
# Line 314  xkeymap_read(char *mapname) Line 314  xkeymap_read(char *mapname)
314                  }                  }
315    
316                  /* Include */                  /* Include */
317                  if (strncmp(line, "include ", 8) == 0)                  if (strncmp(line, "include ", sizeof("include ") - 1) == 0)
318                  {                  {
319                          if (!xkeymap_read(line + 8))                          if (!xkeymap_read(line + sizeof("include ") - 1))
320                                  return False;                                  return False;
321                          continue;                          continue;
322                  }                  }
323    
324                  /* map */                  /* map */
325                  if (strncmp(line, "map ", 4) == 0)                  if (strncmp(line, "map ", sizeof("map ") - 1) == 0)
326                  {                  {
327                          g_keylayout = strtol(line + 4, NULL, 16);                          g_keylayout = strtol(line + sizeof("map ") - 1, NULL, 16);
328                          DEBUG_KBD(("Keylayout 0x%x\n", g_keylayout));                          DEBUG_KBD(("Keylayout 0x%x\n", g_keylayout));
329                          continue;                          continue;
330                  }                  }
331    
332                  /* compose */                  /* compose */
333                  if (strncmp(line, "enable_compose", 15) == 0)                  if (strncmp(line, "enable_compose", sizeof("enable_compose") - 1) == 0)
334                  {                  {
335                          DEBUG_KBD(("Enabling compose handling\n"));                          DEBUG_KBD(("Enabling compose handling\n"));
336                          g_enable_compose = True;                          g_enable_compose = True;
# Line 338  xkeymap_read(char *mapname) Line 338  xkeymap_read(char *mapname)
338                  }                  }
339    
340                  /* sequence */                  /* sequence */
341                  if (strncmp(line, "sequence", 8) == 0)                  if (strncmp(line, "sequence", sizeof("sequence") - 1) == 0)
342                  {                  {
343                          add_sequence(line + 8, mapname);                          add_sequence(line + sizeof("sequence") - 1, mapname);
344                          continue;                          continue;
345                  }                  }
346    
347                  /* keyboard_type */                  /* keyboard_type */
348                  if (strncmp(line, "keyboard_type ", sizeof("keyboard_type ")) == 0)                  if (strncmp(line, "keyboard_type ", sizeof("keyboard_type ") - 1) == 0)
349                  {                  {
350                          g_keyboard_type = strtol(line + sizeof("keyboard_type "), NULL, 16);                          g_keyboard_type = strtol(line + sizeof("keyboard_type ") - 1, NULL, 16);
351                          DEBUG_KBD(("keyboard_type 0x%x\n", g_keyboard_type));                          DEBUG_KBD(("keyboard_type 0x%x\n", g_keyboard_type));
352                          continue;                          continue;
353                  }                  }
354    
355                  /* keyboard_subtype */                  /* keyboard_subtype */
356                  if (strncmp(line, "keyboard_subtype ", sizeof("keyboard_subtype ")) == 0)                  if (strncmp(line, "keyboard_subtype ", sizeof("keyboard_subtype ") - 1) == 0)
357                  {                  {
358                          g_keyboard_subtype = strtol(line + sizeof("keyboard_subtype "), NULL, 16);                          g_keyboard_subtype =
359                                    strtol(line + sizeof("keyboard_subtype ") - 1, NULL, 16);
360                          DEBUG_KBD(("keyboard_subtype 0x%x\n", g_keyboard_subtype));                          DEBUG_KBD(("keyboard_subtype 0x%x\n", g_keyboard_subtype));
361                          continue;                          continue;
362                  }                  }
363    
364                  /* keyboard_functionkeys */                  /* keyboard_functionkeys */
365                  if (strncmp(line, "keyboard_functionkeys ", sizeof("keyboard_functionkeys ")) == 0)                  if (strncmp(line, "keyboard_functionkeys ", sizeof("keyboard_functionkeys ") - 1) ==
366                        0)
367                  {                  {
368                          g_keyboard_functionkeys =                          g_keyboard_functionkeys =
369                                  strtol(line + sizeof("keyboard_functionkeys "), NULL, 16);                                  strtol(line + sizeof("keyboard_functionkeys ") - 1, NULL, 16);
370                          DEBUG_KBD(("keyboard_functionkeys 0x%x\n", g_keyboard_functionkeys));                          DEBUG_KBD(("keyboard_functionkeys 0x%x\n", g_keyboard_functionkeys));
371                          continue;                          continue;
372                  }                  }

Legend:
Removed from v.964  
changed lines
  Added in v.965

  ViewVC Help
Powered by ViewVC 1.1.26