setxkbmap: Changes to 'master'
Peter Hutterer
whot at kemper.freedesktop.org
Mon Feb 14 16:47:20 PST 2011
setxkbmap.c | 535 ++++++++++++++++++++++++++++++------------------------------
1 file changed, 272 insertions(+), 263 deletions(-)
New commits:
commit 130998b172d892ea94daac2a06b7422977fad135
Author: Van de Bugger <van.de.bugger at gmail.com>
Date: Mon Feb 14 01:59:55 2011 +0300
Data refactored: list_t introduced to keep list and its sizes together.
From 49380ed12a0c451207cf5a12ca2c1e0c9c16c9e6 Mon Sep 17 00:00:00 2001
From: Van de Bugger <van.de.bugger at gmail.com>
Date: Mon, 14 Feb 2011 01:45:23 +0300
Subject: [PATCH setxkbmap] Data refactored: list_t introduced to keep list and its sizes together.
In older code there were 3 separate global variables: szOptions, numOptions,
and options. All 3 variables are related: options is a list (array) of items,
szOptions is the allocated size and numOptions is the number of used elements.
3 more variables (szInclPath, numInclPath, inclPath) represent another list.
list_t structure combines related info (pointer to array, allocated size, and
number of used elements) together.
Few functions changed to accept list_t argument instead of separated list and sizes.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
commit 98c159d97a5c628b8293b86ddf49d59a17c6c3a7
Author: Van de Bugger <van.de.bugger at gmail.com>
Date: Mon Feb 14 00:48:34 2011 +0300
Data refactored: 3 separate arrays and set of macros merged into a struct.
Bunch of XXX_NDX defines, and 3 arrays: `svName', `svSrc' and `svValue' are
merged into one structure. Interace of 2 functions `trySetString' and
`setOptString' changed: instead of receiving `which' argument of `int' type
(an index to those arrays) the functions now receive `setting' argument, which
hold everything about the setting: `name', `src', and `value', so the functions
do not use global variables any more.
Signed-off-by: Van de Bugger <van.de.bugger at gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
commit e2bfdaacd980ff290526d386e1be346cb14cf440
Author: Van de Bugger <van.de.bugger at gmail.com>
Date: Mon Feb 14 00:29:49 2011 +0300
Tabs replaced with spaces; trailing spaces deleted.
Signed-off-by: Van de Bugger <van.de.bugger at gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
More information about the xorg-commit
mailing list