summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-15Use fread() instead of getc()Daniel Stone
So, it turns out that if you're parsing a fairly large amount of data, using getc() to get all the input rather than, say, read(), is some kind of remarkably daft and unperformant idea. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2010-06-15Lazy keysym parsing (avoid XStringToKeysym)Daniel Stone
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>
2010-06-02config: add check for yacc to insure it is installed #27973Gaetan Nadon
Unlike other macros AC_PROG_YACC sets the YACC variable to "yacc" as a last resort, even if no programs have been found. Improve error checking by issuing an error message if yacc is not found. The module cannot build anyway. Reported-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-11config: move CWARNFLAGS from configure.ac to Makefile.amGaetan Nadon
Compiler warning flags should be explicitly set in the makefile rather than being merged with other packages compiler flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-27Deploy the new XORG_DEFAULT_OPTIONS #24242Gaetan Nadon
This macro aggregate a number of existing macros that sets commmon X.Org components configuration options. It shields the configuration file from future changes.
2009-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-21This is not a GNU project, so declare it foreign.Jeremy Huddleston
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote: > On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote: > > I noticed an INSTALL file in xlsclients and libXvMC today, and it > > was quite annoying to work around since 'autoreconf -fvi' replaces > > it and git wants to commit it. Should these files even be in git? > > Can I nuke them for the betterment of humanity and since they get > > created by autoreconf anyways? > > See https://bugs.freedesktop.org/show_bug.cgi?id=24206 As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation of the INSTALL file. It is also part of the 24206 solution. Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-10-03xkbcomp 1.1.1xkbcomp-1.1.1Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-06xkbcomp: Remove output file if closing fails.Rami Ylimaki
Without the fix xkbcomp may leave a truncated file in the filesystem if there is not enough disk space. Using the truncated file leads to problems. Signed-off-by: Rami Ylimaki <ext-rami.ylimaki@nokia.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-09Bump to 1.1.0.xkbcomp-1.1.0Peter Hutterer
2009-05-11Use temporary buffer for generating Uxxx names to avoid overflowAlan Coopersmith
Instead of sprintf()'ing a 4 character string to a char [4] buffer, and leaving the trailing '\0' to overwrite into the next entry, snprintf() to a 5 character temp buffer and memcpy the 4 characters to the right place. Fixes parfait errors: Error: Buffer overflow at xkbcomp-1.0.4/misc.c:393 in function 'ComputeKbdDefaults' [Standard C Library pattern matching] In sprintf related dereference of xkb->names->keys[i].name with index not less than '4' Destination array size is 4 bytes, data to be written is 4 bytes Error: Buffer overflow at xkbcomp-1.0.4/misc.c:402 in function 'ComputeKbdDefaults' [Standard C Library pattern matching] In sprintf related dereference of xkb->names->keys[i].name with index not less than '4' Destination array size is 4 bytes, data to be written is 4 bytes [This bug was found by the Parfait bug checking tool. For more information see http://research.sun.com/projects/parfait ] Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-07Allow the default XKB config root to be set from configureDan Nicholson
The default was hardcoded in the Makefile as $(datadir)/share/X11/xkb. This could cause a problem if you are installing xkbcomp to an alternate location but want to continue using the system's XKB data. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2009-01-22Correct a remaining of a wrong change to make some DEBUG_VAR's static.Paulo Cesar Pereira de Andrade
2009-01-21Correct make distcheck and most gcc and sparse warnings.Paulo Cesar Pereira de Andrade
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.
2008-09-11Check for NULL strings before calling strdup.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-09-05sprintf -> snprintf conversionsAlan Coopersmith
2008-09-05Remove #if 0'd typedef that appears nowhere else.Alan Coopersmith
2008-09-05Remove X_NOT_POSIX #ifdefsAlan Coopersmith
POSIX.1-1990 is well below the current minimum bar
2008-09-05Check for strdup & strcasecmp before assuming we need to provide our ownAlan Coopersmith
2008-08-22Don't overwrite previously assigned type indices with useless ones.Peter Hutterer
The default type for a key with no levels is ONE_LEVEL. Let's not overwrite the kt_index with this default type if we have previously assigned a real type. Reproduceable by running setxkbmap -layout "ru(phonetic),us", the first group is assigned ONE_LEVEL and shift stops working. Red Hat Bug #436626 <https://bugzilla.redhat.com/show_bug.cgi?id=436626>
2008-08-21Remove unused merge parameter from HandleKeyNameVar.Peter Hutterer
2008-08-21Don't pass useless handlers around in HandleIncludeKeycodes.Peter Hutterer
What use is a handler if we only ever use one function anyway?
2008-08-21More comments.Peter Hutterer
2008-08-18Remove useless longestPath variable.Peter Hutterer
2008-08-18Silence valgrind warnings.Peter Hutterer
"Conditional jump or move depends on uninitialised value(s)"
2008-08-18Add some explanatory commentsPeter Hutterer
2008-08-12If we're not using XkbDesc, don't require it as a parameter.Peter Hutterer
2008-08-12Indent fixes.Peter Hutterer
indent -cbi 0 -nprs -nut -npcs -i4 -bli 0 *.c *.h
2008-08-12Add a few explanatory comments.Peter Hutterer
2008-08-12Remove RCS tags.Peter Hutterer
2008-05-12Minimal man page addition for new -i option.Matthieu Herrb
2008-05-09Bump to 1.0.5xkbcomp-1.0.5Daniel Stone
2008-04-17Don't scan paths which make NO SENSE WHATSOEVER TO SCANDaniel Stone
Hey, I wonder if we have XKB files in our directory! I wonder if we haven't bothered with a structure, and let's try to open a file called 'misc' in someone's home directory! What a surprise, it's not a valid XKB file! Let's fail miserably! SURPRISINGLY, THIS IS NOT USEFUL BEHAVIOUR.
2008-04-17xkbcomp: Take a device ID argumentDaniel Stone
Allows the user to set maps (or whatever) on arbitrary devices.
2008-03-06xkbcomp 1.0.4xkbcomp-1.0.4Adam Jackson
2008-02-29Bug #7645: Fix a conditional that always evaluates to FALSE.Adam Jackson
Since it's if (0 || foo), simplify to if (foo).
2008-01-22Bug 14185: MAINTAINERCLEANFILES multiply defined in Makefile.amAlan Coopersmith
<http://bugs.freedesktop.org/show_bug.cgi?id=14185>
2008-01-06Revert "Also mark xkbparse.h as a generated file."Matthieu Herrb
Apparently only yacc generates it. This reverts commit 3e5b0d615b94c66a2b5a8b3d2e4a04713a442002.
2008-01-06Also mark xkbparse.h as a generated file.Matthieu Herrb
2007-12-06Replace static ChangeLog with dist-hook to generate from git logJames Cloos
2007-09-23Ignore *.o and ylwrap.Tilman Sauerbeck
2007-09-23Fixed a bunch of const correctness bugs.Tilman Sauerbeck
2007-09-23Fixed an invalid memory access.Tilman Sauerbeck
Some keynames are less than 3 characters long (not counting the terminator). We're now also initializing all of the keyName array.
2007-09-07Bug #11025: xkbcomp COPYING fileDaniel Drake
X.Org Bugzilla #11025 <https://bugs.freedesktop.org/show_bug.cgi?id=11025>
2007-09-03Add *~ to .gitignore to skip patch/emacs droppingsJames Cloos
2007-08-23Rename .cvsignore to .gitignoreJames Cloos
2006-11-08bump to 1.0.3xkbcomp-1.0.3Daniel Stone