summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-11-26atom: Update Hash() to be unsignedHEADmasterJeremy Huddleston Sequoia1-17/+15
This avoids undefined behavior (left shift overflow in signed integer type) atom.c:62:16: runtime error: left shift of 1324774199 by 3 places cannot be represented in type 'int' Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-10-15bdftopcf 1.1.1bdftopcf-1.1.1Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-24Remove weak symbol setup from Atom codeAlan Coopersmith3-96/+2
Not needed here, since this isn't a library and there is no other source of these functions we link against. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Remove unnecessary cast of strlen result in malloc argumentAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Fix -Wsign-compare warningsAlan Coopersmith2-7/+7
atom.c: In function ‘MakeAtom’: atom.c:161:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (hashTable[h]->hash == hash && hashTable[h]->len == len && ^~ atom.c:172:69: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (hashTable[h]->hash == hash && hashTable[h]->len == len && ^~ atom.c:207:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (reverseMapSize <= a->atom) { ^~ bitmap.c: In function ‘bitmapGetMetrics’: bitmap.c:154:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < *glyphCount; i++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Remove redundant null-pointer checkAlan Coopersmith1-1/+1
As warned by cppcheck: bdfread.c:130:18: style: Condition '!line' is always false [knownConditionTrueFalse] if ((!line) || (bdfIsPrefix(line, "ENDCHAR"))) ^ bdfread.c:126:13: note: Assuming condition '!line' is false if (!line) ^ bdfread.c:130:18: note: Condition '!line' is always false if ((!line) || (bdfIsPrefix(line, "ENDCHAR"))) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Remove redundant assignmentAlan Coopersmith1-1/+0
As warned by cppcheck: bdfutils.c:164:17: style: Variable 'pp' is reassigned a value before the old one has been used. [redundantAssignment] for (pp = s; *pp; pp++) ^ bdfutils.c:162:12: note: pp is assigned pp = s; ^ bdfutils.c:164:17: note: pp is overwritten for (pp = s; *pp; pp++) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Make some functions static that aren't called from other filesAlan Coopersmith4-8/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Delete functions identified as unused by cppcheckAlan Coopersmith10-176/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Variable scope reductions as recommended by cppcheckAlan Coopersmith10-90/+68
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-16Add .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-09-16Adopt X.Org standard coding style (via x-indent-all.sh)Alan Coopersmith27-1911/+1882
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith3-4/+4
Found by using: codespell --builtin clear,rare,usage,informal,code,names 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 Coopersmith2-12/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-12-10Depend on xproto and fsproto that are now used.Matthieu Herrb2-1/+4
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Matt Turner <mattst88@gmail.com>
2017-11-07bdftopcf 1.1bdftopcf-1.1Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-11-03Import more libXfont 1.x headersAdam Jackson29-36/+1228
The previous commit would build if you had the old headers installed, but building it in a fresh chroot would fail. Import some more junk and fix up the includes appropriately. Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-10-24Import libXfont's BDF-to-PCF codeAdam Jackson17-7/+3564
bdftopcf is the only consumer of libXfont 1.x's read/write support, and we'd like 1.x to go away entirely. Copy in the BDF read and PCF write support so there's one fewer consumer of 1.x. Signed-off-by: Adam Jackson <ajax@redhat.com> Acked-by: Julien Cristau <jcristau@debian.org>
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>
2014-12-30bdftopcf 1.0.5bdftopcf-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01autogen.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-01configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-22Print which option was in error along with usage messageAlan Coopersmith1-0/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05Correct usage message for scanline unit option to be -u, not -sAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
2013-01-19config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith1-3/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-14bdftopcf 1.0.4bdftopcf-1.0.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-03Use remove() instead of unlink() to remove filesAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-03Use symbolic names instead of raw integers for stdin & stdout fd'sAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-03Add -v flag to print version infoAlan Coopersmith2-0/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-03Combine usage message stringsAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-03Initialize font to 0 values directly instead of via bzeroAlan Coopersmith1-3/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-03Adopt X.Org standard coding style (via x-indent.sh)Alan Coopersmith1-135/+130
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-15/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon1-4/+4
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
This silences an Autoconf warning
2011-01-12config: use AC_PROG_INSTALL now supplied by XORG_DEFAULT_OPTIONSGaetan Nadon1-1/+0
It depends on util-macros 1.8 or later The existing statement can now be removed from the configuration file. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-29bdftopcf 1.0.3bdftopcf-1.0.3Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-29Remove unnecessary calls from configure.acAlan Coopersmith1-4/+0
XORG_DEFAULT_OPTIONS calls AC_PROG_CC PKG_CHECK_MODULES calls AC_SUBST for CFLAGS and LIBS Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-29config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
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>
2010-10-06Purge cvs tags.Jesse Adkins2-6/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2010-07-22Use AM_CFLAGS instead of bdftopcf_CFLAGS since there's only one targetAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-22config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith2-23/+5
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 The existing statement can now be removed from the configuration file. Use automake provided $(AM_V_GEN) and XORG_DEFAULT_OPTIONS provided $(SED) Enables silent rule and use platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon4-3/+6
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 Nadon1-3/+4
This macro aggregate a number of existing macros that sets commmon X.Org components configuration options. It shields the configuration file from future changes.