Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
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>
|
|
Normally overriden by -DDFLT_XKB_CONFIG_ROOT in Makefile
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
|
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>
|
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
See http://people.gnome.org/~walters/docs/build-api.txt
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Flagged by clang:
xkbevd.c:32:9: warning: macro is not used [-Wunused-macros]
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Via util/modular/x-indent-all.sh
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Flagged by cppcheck 1.64:
[utils.c:262]: (style) The function 'uStrCasePrefix' is never used.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Julien Cristau <jcristau@debian.org>
|
|
Debian bug#664962
Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Julien Cristau <jcristau@debian.org>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Stops gcc from suggesting to add noreturn attribute to it.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
except for those caused by code generated by bison/yacc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
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>
|
|
Use services provided by XORG_MANPAGE_SECTIONS.
Use standard Makefile for man pages.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
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>
|
|
The test for the yacc generated file was done in the wrong directory.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
* AC_CHECK_FILE doesn't work for cross compilation
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|