summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-31Add -version option to print program versionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Fix some sign/size conversion warnings from clangAlan Coopersmith
psgeom.c:1320:17: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] if ((sym & (~0xff)) == 0x700) { ~ ^~~~~ psgeom.c:1666:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] else if (((sym & (~0xff)) == 0) && isprint(sym) && (!isspace(sym))) { ~ ^~~~~ psgeom.c:1860:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int len = strlen(top->label[i]); ~~~ ^~~~~~~~~~~~~~~~~~~~~ xkbprint.c:460:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int len = strlen(inputFile); ~~~ ^~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Remove unused INPUT_* definitionsAlan Coopersmith
Flagged by clang: xkbprint.c:62:9: warning: macro is not used [-Wunused-macros] ^ xkbprint.c:61:9: warning: macro is not used [-Wunused-macros] ^ xkbprint.c:60:9: warning: macro is not used [-Wunused-macros] ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Move some local variables to the scope in which they liveAlan Coopersmith
Helps both human readers and static code analyzers realize they're not used outside these scopes. Flagged by cppcheck 1.64: [psgeom.c:1761]: (style) The scope of the variable 'keycode' can be reduced. [psgeom.c:1858]: (style) The scope of the variable 'len' can be reduced. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Combine IsoKeyCaps array of strings into a single stringAlan Coopersmith
Packs more efficiently in binary, reduces number of calls to output, gets rid of ~4k array of pointers to each string in data segment to initialize on program load. "xkbprint -if IsoKeyCaps" generates identical IsoKeyCaps.pfa files before & after this change. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace calls to index() with calls to strchr()Alan Coopersmith
Both were in use in different functions, adopt the ANSI C standard function for all calls. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Combine repeated sequences of fprintf() calls into single callsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace remaining sprintf calls with snprintf()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace several malloc+sprintf pairs with asprintf() callsAlan Coopersmith
Includes fallback uAsprintf() for systems without asprintf yet Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Add printf & noreturn attributes recommended by gccAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace uStrCaseCmp() with direct calls to strcasecmp()Alan Coopersmith
strcasecmp is available in Unix98 and later, so part of the X.Org base platform requirements. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace uStringDup() with direct calls to strdup()Alan Coopersmith
strdup is available in Unix98 and later, so part of the X.Org base platform requirements. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace custom uAlloc/uCalloc with plain malloc/callocAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Replace sole call to uFree() with direct call to free()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uTmpAlloc & uTmpFree fallbacks for allocaAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uRealloc & uRecalloc functionsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uStrCasePrefix fallback for strncasecmpAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused debugging & function tracing frameworksAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uASSERT macroAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Fix many const char * warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26unifdef -Unotyet -UNOTYETAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Convert sources to X.Org standard coding styleAlan Coopersmith
Via util/modular/x-indent-all.sh Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-07xkbprint 1.0.3xkbprint-1.0.3Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith
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>
2011-01-05config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Enables use of platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: update AC_PREREQ statement to 2.60Gaetan Nadon
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: Remove unnecessary calls from configure.acAlan Coopersmith
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-11-11INSTALL, 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-11-11Deploy 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-11-11Makefile.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-11-11.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-11-10xkbprint 1.0.2xkbprint-1.0.2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-11-10Fill in COPYING with notices from codeAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-11-10Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-01Add README with pointers to mailing lists, bugzilla, & gitAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-22Correct make distcheck and sparse warnings.Paulo Cesar Pereira de Andrade
2008-11-28build fixesPeter Breitenlohner
use AM_CFLAGS instead of xkbprint_CFLAGS to avoid need for AM_PROG_CC_C_O replace 'git-log' by 'git log' as required by git-1.6.x
2008-11-28Compile warning fixes.Paulo Cesar Pereira de Andrade
Use constant octals instead of constant characters in switch case values to avoid warnings/problems if constant characters are signed. Ansify some functions in utils.c. Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2008-11-28correct outline with cornerRadiusPavel Kurashov
http://bugs.freedesktop.org/show_bug.cgi?id=12790 https://bugs.freedesktop.org/attachment.cgi?id=12008 Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2008-06-12Fix typo in xkbprint man pageNiveditha Rau
2007-12-06Replace static ChangeLog with dist-hook to generate from git logJames Cloos
2007-09-03Add *~ to .gitignore to skip patch/emacs droppingsJames Cloos
2007-08-23Rename .cvsignore to .gitignoreJames Cloos
2005-12-21Update package version for X11R7 release.xkbprint-1.0.1XORG-7_1XORG-7_0_99_901XORG-7_0Kevin E Martin
2005-12-19Stub COPYING filesAdam Jackson
2005-12-15Update package version number for final X11R7 release candidate.xkbprint-1.0.0XORG-6_99_99_904Kevin E Martin