1. 21 Apr, 2015 1 commit
  2. 10 Feb, 2015 2 commits
  3. 12 Nov, 2014 1 commit
  4. 28 Oct, 2014 1 commit
  5. 12 Mar, 2014 2 commits
  6. 12 Jan, 2014 2 commits
  7. 21 Feb, 2013 1 commit
  8. 15 Feb, 2013 1 commit
  9. 06 Dec, 2012 1 commit
  10. 19 Nov, 2012 1 commit
  11. 05 Nov, 2012 1 commit
  12. 10 Jul, 2012 3 commits
  13. 21 Mar, 2012 2 commits
    • Daniel Stone's avatar
      Indentation: Change '& stuff' to '&stuff' · ab3a815a
      Daniel Stone authored
      If the typedef wasn't perfect, indent would get confused and change:
          foo = (SomePointlessTypedef *) &stuff[1];
      to:
          foo = (SomePointlessTypedef *) & stuff[1];
      
      Fix this up with a really naïve sed script, plus some hand-editing to
      change some false positives in XKB back.
      Signed-off-by: 's avatarDaniel Stone <daniel@fooishbar.org>
      ab3a815a
    • Keith Packard's avatar
      Introduce a consistent coding style · 9838b703
      Keith Packard authored
      This is strictly the application of the script 'x-indent-all.sh'
      from util/modular. Compared to the patch that Daniel posted in
      January, I've added a few indent flags:
      
      	-bap
      	-psl
      	-T PrivatePtr
      	-T pmWait
      	-T _XFUNCPROTOBEGIN
      	-T _XFUNCPROTOEND
      	-T _X_EXPORT
      
      The typedefs were needed to make the output of sdksyms.sh match the
      previous output, otherwise, the code is formatted badly enough that
      sdksyms.sh generates incorrect output.
      
      The generated code was compared with the previous version and found to
      be essentially identical -- "assert" line numbers and BUILD_TIME were
      the only differences found.
      
      The comparison was done with this script:
      
      dir1=$1
      dir2=$2
      
      for dir in $dir1 $dir2; do
      	(cd $dir && find . -name '*.o' | while read file; do
      		dir=`dirname $file`
      		base=`basename $file .o`
      		dump=$dir/$base.dump
      		objdump -d $file > $dump
      	done)
      done
      
      find $dir1 -name '*.dump' | while read dump; do
      	otherdump=`echo $dump | sed "s;$dir1;$dir2;"`
      	diff -u $dump $otherdump
      done
      Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
      Acked-by: 's avatarDaniel Stone <daniel@fooishbar.org>
      Acked-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      9838b703
  14. 21 Sep, 2011 4 commits
  15. 15 Jul, 2011 1 commit
    • Daniel Stone's avatar
      XKB: Work around broken interps from old xkbcomp · 82f5521a
      Daniel Stone authored
      Bugfix for broken xkbcomp: if we encounter an XFree86Private action with
      Any+AnyOfOrNone(All), then we skip the interp as broken.  Versions of
      xkbcomp below 1.2.2 had a bug where they would interpret a symbol that
      couldn't be found in an interpret as Any.  So, an
      XF86LogWindowTree+AnyOfOrNone(All) interp that triggered the PrWins
      action would make every key without an action trigger PrWins if libX11
      didn't yet know about the XF86LogWindowTree keysym.  None too useful.
      
      We only do this for XFree86 actions, as the current XKB dataset relies
      on Any+AnyOfOrNone(All) -> SetMods for Ctrl in particular.
      
      See xkbcomp commits 2a473b906943ffd807ad81960c47530ee7ae9a60 and
      3caab5aa37decb7b5dc1642a0452efc3e1f5100e for more details.
      Signed-off-by: 's avatarDaniel Stone <daniel@fooishbar.org>
      Acked-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      82f5521a
  16. 06 May, 2011 4 commits
  17. 17 Mar, 2011 2 commits
  18. 16 Mar, 2011 1 commit
  19. 22 Feb, 2011 3 commits
  20. 15 Feb, 2011 1 commit
  21. 13 Feb, 2011 2 commits
    • Ander Conselvan de Oliveira's avatar
      ProcXkbGetXkbByName: fix use of uninitialised bytes valgrind error. · 85f90173
      Ander Conselvan de Oliveira authored
      ==9999== Syscall param writev(vector[...]) points to uninitialised byte(s)
      ==9999==    at 0x4AB5154: writev (writev.c:51)
      ==9999==    by 0x7C7C3: _XSERVTransWritev (Xtrans.c:912)
      ==9999==    by 0x61C8B: FlushClient (io.c:924)
      ==9999==    by 0x62423: WriteToClient (io.c:846)
      ==9999==    by 0xCE39B: XkbSendMap (xkb.c:1408)
      ==9999==    by 0xD247B: ProcXkbGetKbdByName (xkb.c:5814)
      ==9999==    by 0x4AB53: Dispatch (dispatch.c:432)
      ==9999==    by 0x205BF: main (main.c:291)
      ==9999==  Address 0x557eb68 is 40 bytes inside a block of size 4,096 alloc'd
      ==9999==    at 0x48334A4: calloc (vg_replace_malloc.c:467)
      ==9999==    by 0x62567: WriteToClient (io.c:1065)
      ==9999==    by 0x452EB: ProcEstablishConnection (dispatch.c:3685)
      ==9999==    by 0x4AB53: Dispatch (dispatch.c:432)
      ==9999==    by 0x205BF: main (main.c:291)
      ==9999==  Uninitialised value was created by a stack allocation
      ==9999==    at 0xD1910: ProcXkbGetKbdByName (xkb.c:5559)
      Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: 's avatarOliver McFadden <oliver.mcfadden@nokia.com>
      Signed-off-by: 's avatarAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
      85f90173
    • Ander Conselvan de Oliveira's avatar
      XkbSendNames: fix use of uninitialised bytes valgrind error. · 8a34d7a8
      Ander Conselvan de Oliveira authored
      ==537== Syscall param writev(vector[...]) points to uninitialised byte(s)
      ==537==    at 0x4AB7154: writev (writev.c:51)
      ==537==    by 0x8935B: _XSERVTransWritev (Xtrans.c:912)
      ==537==    by 0x6C55F: FlushClient (io.c:924)
      ==537==    by 0x6CCF3: WriteToClient (io.c:846)
      ==537==    by 0xD51D3: XkbSendNames (xkb.c:3765)
      ==537==    by 0xD8183: ProcXkbGetKbdByName (xkb.c:5825)
      ==537==    by 0x27B7B: Dispatch (dispatch.c:432)
      ==537==    by 0x205B7: main (main.c:291)
      ==537==  Address 0x55899f2 is 154 bytes inside a block of size 1,896 alloc'd
      ==537==    at 0x4834C48: malloc (vg_replace_malloc.c:236)
      ==537==    by 0xD47AF: XkbSendNames (xkb.c:3642)
      ==537==    by 0xD8183: ProcXkbGetKbdByName (xkb.c:5825)
      ==537==    by 0x27B7B: Dispatch (dispatch.c:432)
      ==537==    by 0x205B7: main (main.c:291)
      ==537==  Uninitialised value was created by a heap allocation
      ==537==    at 0x4834C48: malloc (vg_replace_malloc.c:236)
      ==537==    by 0xD47AF: XkbSendNames (xkb.c:3642)
      ==537==    by 0xD8183: ProcXkbGetKbdByName (xkb.c:5825)
      ==537==    by 0x27B7B: Dispatch (dispatch.c:432)
      ==537==    by 0x205B7: main (main.c:291)
      Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: 's avatarOliver McFadden <oliver.mcfadden@nokia.com>
      Signed-off-by: 's avatarAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
      8a34d7a8
  22. 27 Jan, 2011 1 commit
  23. 19 Oct, 2010 2 commits