summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-22Assume target platforms have strcasecmp nowHEADmasterAlan Coopersmith3-35/+1
It has been required since Unix98/SUSv2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/merge_requests/5>
2022-11-12xkbevd 1.1.5xkbevd-1.1.5Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22Add .git-blame-ignore-revs to hide whitespace commits from git blameAlan Coopersmith1-0/+18
To use this in your local repo clone, you will need to either run `git blame --ignore-revs-file .git-blame-ignore-revs` or set it permanently with `git config blame.ignoreRevsFile .git-blame-ignore-revs` Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22eventTypeToString: remove unnecessary strcpy to static bufferAlan Coopersmith1-7/+4
Since the results are just passed to fprintf(), we can just return a pointer to the string constants directly. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22xkbevd.c: Update default DFLT_XKB_CONFIG_ROOT pathAlan Coopersmith1-1/+1
Normally overriden by -DDFLT_XKB_CONFIG_ROOT in Makefile Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22cfgscan: check if character is EOF before calling isalpha or isdigitAlan Coopersmith1-2/+2
Resolves cppcheck warnings: cfgscan.c:475:22: warning: Either the condition 'ch==-1' is redundant or isalpha() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:255'. [invalidFunctionArg] else if (isalpha(ch) || (ch == '_')) ^ cfgscan.c:479:17: note: Assuming that condition 'ch==-1' is not redundant else if (ch == EOF) ^ cfgscan.c:475:22: note: Invalid argument else if (isalpha(ch) || (ch == '_')) ^ cfgscan.c:477:22: warning: Either the condition 'ch==-1' is redundant or isdigit() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:255'. [invalidFunctionArg] else if (isdigit(ch)) ^ cfgscan.c:479:17: note: Assuming that condition 'ch==-1' is not redundant else if (ch == EOF) ^ cfgscan.c:477:22: note: Invalid argument else if (isdigit(ch)) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22Rename shadowed variablesAlan Coopersmith1-10/+11
Fixes gcc warnings of: xkbevd.c: In function ‘GetDisplay’: xkbevd.c:219:33: warning: declaration of ‘dpyName’ shadows a global declaration [-Wshadow] GetDisplay(char *program, char *dpyName, int *opcodeRtrn, int *evBaseRtrn) ^~~~~~~ xkbevd.c:55:17: note: shadowed declaration is here static char * dpyName = NULL; ^~~~~~~ xkbevd.c:222:14: warning: declaration of ‘dpy’ shadows a global declaration [-Wshadow] Display *dpy; ^~~ xkbevd.c:56:17: note: shadowed declaration is here Display * dpy = NULL; ^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22Variable scope reduction as suggested by cppcheckAlan Coopersmith2-8/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02man page: remove out-of-date COPYRIGHT sectionAlan Coopersmith1-6/+0
The information previously listed here didn't match what is present in the source code or the COPYING file, and the X(7) man page doesn't list any license information as this had claimed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-24/+28
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-04-16xkbevd 1.1.4xkbevd-1.1.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Remove unused macro lowbit()Alan Coopersmith1-3/+0
Flagged by clang: xkbevd.c:32:9: warning: macro is not used [-Wunused-macros] ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Add xev & xkbwatch to SEE ALSO list in man pageAlan Coopersmith1-1/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Add -version option to print program versionAlan Coopersmith2-0/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Remove unnecessary cast of getenv return value to char *Alan Coopersmith1-3/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Convert sources to X.Org standard coding styleAlan Coopersmith7-1095/+1273
Via util/modular/x-indent-all.sh Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Convert sprintf calls to snprintfAlan Coopersmith3-43/+43
Remaining sprintf calls in evargs.c are printing into buffers passed through multiple levels of function calls, and need arguments added to those functions to pass through buffer sizes as well. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Remove unused debugging & function tracing frameworksAlan Coopersmith6-220/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25Delete unused uStrCasePrefix functionAlan Coopersmith2-23/+0
Flagged by cppcheck 1.64: [utils.c:262]: (style) The function 'uStrCasePrefix' is never used. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-25unifdef -UnotyetAlan Coopersmith2-243/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-23man: whitespace fixesBjarni Ingi Gislason1-11/+11
Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-03-23man: fix broken escape sequence (\P instead of \fP)Julien Cristau1-1/+1
Debian bug#664962 Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-03-22xkbevd 1.1.3xkbevd-1.1.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-27Delete unused uFatalError functionAlan Coopersmith2-27/+0
Stops gcc from suggesting to add noreturn attribute to it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-27Fix gcc -Wwrite-strings warningsAlan Coopersmith4-11/+11
except for those caused by code generated by bison/yacc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-27Replace local u*alloc wrappers with direct calls to standard funcsAlan Coopersmith5-123/+15
Includes: - Replacing calls to uTypedCalloc with direct calloc calls - Replacing uFree calls with free calls - Assuming strdup is always available and uStringDup fallback function is no longer needed - Deleting the remainder of the forms of u*alloc which were unused Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-27Check for strdup & strcasecmp in configure before defining our ownAlan Coopersmith2-0/+6
The HAVE_STRDUP & HAVE_STRCASECMP checks were already in the code, just not the configure checks to define them or the #include "config.h" to find the definitions. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-16config: move pre-processor flags to AM_CPPFLAGSGaetan Nadon1-2/+3
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-08config: let Automake handle Yacc dist and cleaningGaetan Nadon1-4/+2
BUILT_SOURCES and MAINTAINERCLEANFILES are already handled by Automake. Automake generates all the rules to handle building, distribution and cleaning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-18/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-12-08xkbevd 1.1.2xkbevd-1.1.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Purge RCS/CVS version tagsAlan Coopersmith11-22/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Fix errors found by gcc's printf attribute checkAlan Coopersmith1-6/+11
xkbevd.c: In function `parseArgs': xkbevd.c:120: warning: too few arguments for format xkbevd.c:139: warning: too few arguments for format xkbevd.c:158: warning: too few arguments for format xkbevd.c:177: warning: too few arguments for format xkbevd.c: In function `InterpretConfigs': xkbevd.c:280: warning: format argument is not a pointer (arg 2) xkbevd.c: In function `FindMatchingConfig': xkbevd.c:374: warning: too few arguments for format Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Add printf attributes to util.c functionsAlan Coopersmith1-9/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Constify arguments to utils.c functionsAlan Coopersmith2-34/+34
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Remove trailing whitespaceAlan Coopersmith12-118/+118
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Combine usage message into a single stringAlan Coopersmith1-13/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-4/+6
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-01config: cfgparse.c is in the root dir and not in src dirGaetan Nadon1-1/+1
The test for the yacc generated file was done in the wrong directory. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-11-01config: replace AC_CHECK_FILE with test -fMartin Jansa1-2/+5
* AC_CHECK_FILE doesn't work for cross compilation Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-30xkbevd 1.1.1xkbevd-1.1.1Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>