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:
parent
0d745819a9
commit
392fa276dc
15
ChangeLog
15
ChangeLog
|
@ -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>
|
2006-04-06 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
reviewed by: plam
|
reviewed by: plam
|
||||||
* fc-case/fc-case.c:
|
* fc-case/fc-case.c:
|
||||||
|
|
|
@ -30,10 +30,10 @@ SGML = ${FC_CACHE_SRC}/fc-cache.sgml
|
||||||
AM_CPPFLAGS = -DPKGCACHEDIR='"${pkgcachedir}"'
|
AM_CPPFLAGS = -DPKGCACHEDIR='"${pkgcachedir}"'
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
$(mkinstalldirs) "$(DESTDIR)$(pkgcachedir)"
|
-$(mkinstalldirs) "$(DESTDIR)$(pkgcachedir)"
|
||||||
|
|
||||||
uninstall-local:
|
uninstall-local:
|
||||||
$(RM) -rf "$(DESTDIR)$(pkgcachedir)"
|
-$(RM) -rf "$(DESTDIR)$(pkgcachedir)"
|
||||||
|
|
||||||
INCLUDES=-I${top_srcdir} $(FREETYPE_CFLAGS)
|
INCLUDES=-I${top_srcdir} $(FREETYPE_CFLAGS)
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "fcint.h"
|
#include "fcint.h"
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
const char *field;
|
const char *field;
|
||||||
FcBool value;
|
FcBool value;
|
||||||
} FcBoolDefaults[] = {
|
} FcBoolDefaults[] = {
|
||||||
|
|
|
@ -350,7 +350,7 @@ typedef union _FcValueListAlign {
|
||||||
|
|
||||||
static int FcValueListFrozenCount[FcTypeLangSet + 1];
|
static int FcValueListFrozenCount[FcTypeLangSet + 1];
|
||||||
static int FcValueListFrozenBytes[FcTypeLangSet + 1];
|
static int FcValueListFrozenBytes[FcTypeLangSet + 1];
|
||||||
static char FcValueListFrozenName[][8] = {
|
static const char FcValueListFrozenName[][8] = {
|
||||||
"Void",
|
"Void",
|
||||||
"Integer",
|
"Integer",
|
||||||
"Double",
|
"Double",
|
||||||
|
|
|
@ -339,7 +339,7 @@ typedef enum _FcElement {
|
||||||
FcElementUnknown
|
FcElementUnknown
|
||||||
} FcElement;
|
} FcElement;
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
const char name[16];
|
const char name[16];
|
||||||
FcElement element;
|
FcElement element;
|
||||||
} fcElementMap[] = {
|
} fcElementMap[] = {
|
||||||
|
|
Loading…
Reference in New Issue