Commit Graph

90 Commits

Author SHA1 Message Date
d6eec7a9c8 编译配置 2024-12-24 23:34:34 +08:00
Alan Coopersmith
42f3a39c30 libfontenc 1.1.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libfontenc-1.1.3
2015-04-30 21:39:51 -07:00
Alan Coopersmith
de1843aaf7 Initialize aliases array in parseEncodingFile()
The static analyzer insisted there were code paths that entries in this
array could be read without them being initialized.  While I couldn't
see any way that would happen, this makes sure it can't and makes the
analyzer quiet.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-17 19:37:28 -08:00
Alan Coopersmith
c377d91157 Reformat code to X.Org standard style
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-17 19:18:41 -08:00
Alan Coopersmith
8eefb5a18d Replace strcpy+strcat calls with snprintf calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-17 18:46:49 -08:00
Alan Coopersmith
a5221fc113 Replace sprintf call with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-17 18:36:07 -08:00
Alan Coopersmith
0037a42107 Initialize both value1 & value2, not value1 twice
Flagged by cppcheck 1.62:
[src/encparse.c:303] -> [src/encparse.c:303]: (performance, inconclusive)
 Variable 'value1' is reassigned a value before the old one has been used
 if variable is no semaphore variable.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-26 09:40:00 -08:00
Alan Coopersmith
3acba630d8 libfontenc 1.1.2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libfontenc-1.1.2
2013-04-25 20:52:11 -07:00
Nickolai Zeldovich
624508365e libfontenc: setCode(): fix realloc invocation
This patch fixes two bugs in the realloc invocation in setCode(), which
most likely cause memory corruption when realloc is triggered:

1. Pass *enc to realloc (which is the dynamically-allocated buffer),
   instead of enc (which stores a pointer to the dynamically-allocated
   buffer).

2. Allocate enough memory for (*encsize) shorts, instead of (*encsize)
   bytes; see the call to malloc just above the realloc call.

Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-03-04 08:48:29 -08:00
Alan Coopersmith
f5d1208172 Replace deprecated Automake INCLUDES variable with AM_CPPFLAGS
Excerpt https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html

  - Support for the long-deprecated INCLUDES variable will be removed
    altogether in Automake 1.14.  The AM_CPPFLAGS variable should be
    used instead.

This variable was deprecated in Automake releases prior to 1.10, which is
the current minimum level required to build X.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-19 08:23:09 -08:00
Colin Walters
0c3518df24 autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-15 14:32:11 -05:00
Adam Jackson
edd325236d configure: Remove AM_MAINTAINER_MODE
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-15 14:28:48 -05:00
James Cloos
7de846ed19 Fix ISO-8859-7 → ISO-10646 mapping.
ISO-8859-7 code point 0xD2 is unassigned.

ISO-10646 code point U+03A2, to which 0xD2 was mapping, also is unassigned.

Reported by Norm Pierce.

Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-04-24 16:01:35 -04:00
James Cloos
f7682533fa Fix ISO-8859-6 → ISO-10646 mapping.
ISO-8859-6 code point 0xC0 is unassigned.

ISO-10646 code point U+0620, to which 0xC0 was mapping, has since been
assigned an unrelated character.

Reported by Norm Pierce.

Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-04-24 15:55:59 -04:00
Alan Coopersmith
6012075d94 libfontenc 1.1.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libfontenc-1.1.1
2012-03-02 17:51:30 -08:00
Jeremy Huddleston
381c9efec4 Include strings.h for strcasecmp
Our minimum requirement for X11 is currently Unix98.  Unix98 provides
strcasecmp in <strings.h>.  This commit fixes implicit declarations
of this function on systems that closely adhere to the standard.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-11-11 10:22:52 -08:00
Alan Coopersmith
1da600011b Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-16 22:07:14 -07:00
Jeremy Huddleston
272b776fbd Dead code removal
encparse.c:750:9: warning: Value stored to 'namsize' is never read
        namsize = 0;
        ^         ~

Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-09 09:43:24 -07:00
Gaetan Nadon
39800e873e config: comment, minor upgrade, quote and layout configure.ac
Group statements per section as per Autoconf standard layout
Quote statements where appropriate.
Autoconf recommends not using dnl instead of # for comments

Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters.
Add AC_CONFIG_SRCDIR([Makefile.am])
Update X.Org util-macros to version 1.8

This helps automated maintenance and release activities.
Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-02-03 17:37:36 -05:00
Gaetan Nadon
bd845a08f0 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-28 19:41:37 -05:00
Gaetan Nadon
8acc384499 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-27 18:50:14 -05:00
Alan Coopersmith
0e3929c939 Fail configure if zlib.h & -lz not found
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=31595

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
2010-11-21 18:43:58 -08:00
Alan Coopersmith
a52174d1a7 libfontenc 1.1.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libfontenc-1.1.0
2010-10-20 22:35:18 -07:00
Alan Coopersmith
af4a0a752c Don't need to check if pointer is NULL before calling free()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-05-17 08:20:46 -07:00
Alan Coopersmith
2218195ebb Replace malloc(strlen()) + strcpy() with strdup()
Now that we use malloc directly instead of xalloc, we can use
strdup directly too.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-05-17 08:20:23 -07:00
Mikhail Gusarov
4af0cf6ef7 Nuke unnecessary casts
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-14 20:02:41 -07:00
Mikhail Gusarov
cfc89d09f1 Expand xalloc/xrealloc/xfree macros
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-14 20:02:32 -07:00
Mikhail Gusarov
3db0064e4b unifdef FONTENC_NO_LIBFONT
This symbol was unconditionally defined in Makefile
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-14 20:02:20 -07:00
Mikhail Gusarov
8029fc07fc Nuke RCS tags
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-14 20:02:03 -07:00
Gaetan Nadon
3e00a8c322 config: update AC_PREREQ statement to 2.60
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-03-29 16:50:34 -04:00
Gaetan Nadon
0191826dd2 config: remove the pkgconfig pc.in file from EXTRA_DIST
Automake always includes it in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-29 14:53:49 -04:00
Gaetan Nadon
d2d6e4d88b config: move CWARNFLAGS from configure.ac to Makefile.am
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>
2010-02-16 10:37:21 -05:00
Gaetan Nadon
b3807dccab Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-27 20:56:05 -05:00
Gaetan Nadon
79c70fcf67 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
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-28 14:09:10 -04:00
Gaetan Nadon
e7337c1598 Deploy the new XORG_DEFAULT_OPTIONS #24242
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-27 15:07:25 -04:00
Gaetan Nadon
e3bd17c452 Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
ChangeLog filename is known to Automake and requires no further
coding in the makefile.
2009-10-26 22:08:43 -04:00
Gaetan Nadon
e6631b8352 .gitignore: use common defaults with custom section # 24239
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-22 12:34:20 -04:00
Jeremy Huddleston
6210f1d458 This is not a GNU project, so declare it foreign.
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-21 12:47:27 -07:00
Alan Coopersmith
eb4dbb8aac Use font-utils 1.1 macros to find encodings path
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-13 18:37:00 -07:00
Peter Hutterer
e609e939f8 libfontenc 1.0.5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libfontenc-1.0.5
2009-08-28 14:17:16 +10:00
Alan Coopersmith
8a0bd244c5 Add README with pointers to mailing list, bugzilla & git repos
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-02 20:34:38 -08:00
Paulo Cesar Pereira de Andrade
f160a71e95 Janitor: Correct make distcheck and compiler warnings. 2009-01-28 16:25:32 -02:00
James Cloos
90f2dfbc40 Add missing PHONY line for automatic ChangeLog generation 2007-12-06 15:51:21 -05:00
Daniel Stone
1b4ca41a58 bump to 1.0.4 libfontenc-1.0.4 2006-12-16 01:19:45 +02:00
Daniel Stone
38855c00c9 Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
2006-12-06 18:57:29 +02:00
Adam Jackson
111a9501c2 Bump to 1.0.3 libfontenc-1.0.3 2006-10-13 15:20:48 -04:00
Adam Jackson
fc19e19275 Fix ChangeLog hook to distcheck. 2006-10-12 18:35:04 -04:00
Alan Coopersmith
2de626b538 Mark character mapping data tables as const 2006-10-04 19:31:23 -07:00
Alan Coopersmith
2daccee698 Clear sparse warnings: Using plain integer as NULL pointer 2006-10-04 19:13:17 -07:00
Alan Coopersmith
b00dcc90e4 Add XORG_WITH_LINT support for checking source code with lint/sparse/etc. 2006-10-04 18:50:44 -07:00