summaryrefslogtreecommitdiff
path: root/xkbparse.y
Commit message (Collapse)AuthorAgeFilesLines
* Only build debug infrastructure if DEBUG is definedAlan Coopersmith2023-01-031-3/+2
| | | | | | | It's only used when DEBUG is defined, so don't build it when we're not using it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove trailing whitespacesPeter Hutterer2021-01-211-18/+18
| | | | | | Let's clean this up so I don't have to fight vim and git in removing them. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add parsing support for multiple keysyms per levelDaniel Stone2012-10-311-1/+9
| | | | | | | | | | | Parse, but ignore, level definitions in the form of: key <FOO> { [ normal_sym, { M, U, L, T, I, S, Y, M } ] }; normal_sym will be carried, but the latter will be turned into NoSymbol. http://bugs.freedesktop.org/show_bug.cgi?id=25025 Signed-off-by: Daniel Stone <daniel@fooishbar.org>
* Interp: Allow explicit Any/NoSymbol mappingsDaniel Stone2011-06-211-2/+2
| | | | | | | | | | | | | | | | | | | | | Brown paper bag in full effect. The previous fix, while crushing the previous problem where an unknown keysym for an interp def would lead to every key matching it, also ignored explicit Any+AnyOfOrNone(All) mappings. Such as the one xkeyboard-config relied on for Control to actually update the modifier state. Fix this by allowing mappings explicitly declared as Any/NoSymbol, while ignoring only those with failed keysym lookups. Unfortunately, due to the structure of the parser, it's a deeply inelegant fix. Verified with a quick check of all layouts (albeit using default variants only) in xkeyboard-config that this results in no changes to the output at all, compared to xkbcomp 1.1.1. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
* Fix parsing of 0x1a2b3c4d-style symbolsDaniel Stone2010-07-091-1/+1
| | | | | | | | Raw keysyms were not getting parsed correctly, due to forgetting to add the code to libX11, forgetting to add the backwards-compat code for old libX11s, and then stuffing the lexing up anyway. Yeesh. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
* Don't malloc() and free() most scanned symbolsDaniel Stone2010-06-151-9/+9
| | | | | | Use a constant buffer. Sigh. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
* Lazy keysym parsing (avoid XStringToKeysym)Daniel Stone2010-06-151-27/+10
| | | | | | | Instead of calling XStringToKeysym on every keysym we parse, store it as a string until we need to store it in an actual keymap. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
* Correct a remaining of a wrong change to make some DEBUG_VAR's static.Paulo Cesar Pereira de Andrade2009-01-221-1/+1
|
* Correct make distcheck and most gcc and sparse warnings.Paulo Cesar Pereira de Andrade2009-01-211-0/+1
| | | | | | | | | | | | | | | | | | | | Remaining warnings are due to macros that check address or vectors on the stack and auto generated yacc code. Compiled with default flags and also as: % make CFLAGS=-DENTRY_TRACKING_ON -DDEBUG_ON -DASSERTIONS_ON to ensure the "simplification" of code like: foo.c: <hash>define DEBUG_VAR foo_VAR <hash>include "foo.h" ... foo.h: <hash>ifdef DEBUG_VAR_NOT_LOCAL extern <hash>endif int DEBUG_VAR; ... did not change the author's "intended" logic.
* sprintf -> snprintf conversionsAlan Coopersmith2008-09-051-2/+3
|
* Remove RCS tags.Peter Hutterer2008-08-121-2/+0
|
* Fixed a bunch of const correctness bugs.Tilman Sauerbeck2007-09-231-1/+1
|
* Fixed an invalid memory access.Tilman Sauerbeck2007-09-231-1/+2
| | | | | Some keynames are less than 3 characters long (not counting the terminator). We're now also initializing all of the keyName array.
* parser: accept negative numbers in geometry co-ordinates (bug #8763)Andriy Gapon2006-10-291-2/+6
| | | | Accept negative co-ordinates for geometry, per the spec.
* Merging XORG-CURRENT into trunkXORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XACE-SELINUX-MERGECOMPOSITEWRAPEgbert Eich2004-04-231-1/+1
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-141-1/+1
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-031-1/+1
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-261-1/+1
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-261-1/+1
|
* XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley2003-11-141-18/+6
|
* R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley2003-11-141-0/+806