Reduce amount of dirty rss by const'ing some data structures.

Don't fail if we can't create or remove $(pkgcachedir) i.e.
    /var/cache/fontconfig. (reported by Quanah Gibson-Mount).
reviewed by: plam
This commit is contained in:
Patrick Lam 2006-04-06 04:52:21 +00:00
parent 0d745819a9
commit 392fa276dc
5 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,18 @@
2006-04-06 Diego Pettenò <flameeyes@gentoo.org>
reviewed by: plam
* src/fcdefault.c:
* src/fcpat.c:
* src/fcxml.c:
Reduce amount of dirty rss by const'ing some data structures.
2006-04-06 Patrick Lam <plam@mit.edu>
* fc-cache/Makefile.am:
Don't fail if we can't create or remove
$(pkgcachedir) i.e. /var/cache/fontconfig.
(reported by Quanah Gibson-Mount).
2006-04-06 Kjartan Maraas <kmaraas@gnome.org>
reviewed by: plam
* fc-case/fc-case.c:

View File

@ -30,10 +30,10 @@ SGML = ${FC_CACHE_SRC}/fc-cache.sgml
AM_CPPFLAGS = -DPKGCACHEDIR='"${pkgcachedir}"'
install-data-local:
$(mkinstalldirs) "$(DESTDIR)$(pkgcachedir)"
-$(mkinstalldirs) "$(DESTDIR)$(pkgcachedir)"
uninstall-local:
$(RM) -rf "$(DESTDIR)$(pkgcachedir)"
-$(RM) -rf "$(DESTDIR)$(pkgcachedir)"
INCLUDES=-I${top_srcdir} $(FREETYPE_CFLAGS)

View File

@ -25,7 +25,7 @@
#include "fcint.h"
#include <locale.h>
static struct {
static const struct {
const char *field;
FcBool value;
} FcBoolDefaults[] = {

View File

@ -350,7 +350,7 @@ typedef union _FcValueListAlign {
static int FcValueListFrozenCount[FcTypeLangSet + 1];
static int FcValueListFrozenBytes[FcTypeLangSet + 1];
static char FcValueListFrozenName[][8] = {
static const char FcValueListFrozenName[][8] = {
"Void",
"Integer",
"Double",

View File

@ -339,7 +339,7 @@ typedef enum _FcElement {
FcElementUnknown
} FcElement;
static struct {
static const struct {
const char name[16];
FcElement element;
} fcElementMap[] = {