diff options
author | marha <marha@users.sourceforge.net> | 2013-10-01 12:23:16 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-10-01 12:28:08 +0200 |
commit | 6dd755aa923291db2501cc5c22e409c41a70e3c1 (patch) | |
tree | fa88a321afc13657f7687a25d466f49151c9599a /libXfont/src/fontfile/catalogue.c | |
parent | a5391fdea94a7b827069c6f926f83a235076ccb4 (diff) | |
download | vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.tar.gz vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.tar.bz2 vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.zip |
Update following packages:
libXpm-3.5.11
libXaw-1.0.12
libXfont-1.4.6
libXrender-0.9.8
xproto-7.0.24
inputproto-2.3
xclock-1.0.7
xhost-1.0.6
Diffstat (limited to 'libXfont/src/fontfile/catalogue.c')
-rw-r--r-- | libXfont/src/fontfile/catalogue.c | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/libXfont/src/fontfile/catalogue.c b/libXfont/src/fontfile/catalogue.c index 3a04a754d..09ca2ae8a 100644 --- a/libXfont/src/fontfile/catalogue.c +++ b/libXfont/src/fontfile/catalogue.c @@ -27,6 +27,8 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif + +#ifdef HAVE_READLINK #include <X11/fonts/fntfilst.h> #include <sys/types.h> #include <sys/stat.h> @@ -60,7 +62,7 @@ CatalogueAddFPE (CataloguePtr cat, FontPathElementPtr fpe) cat->fpeAlloc = 16; else cat->fpeAlloc *= 2; - + new = realloc(cat->fpeList, cat->fpeAlloc * sizeof(FontPathElementPtr)); if (new == NULL) return AllocError; @@ -190,7 +192,7 @@ CatalogueRescan (FontPathElementPtr fpe, Bool forceScan) subfpe->type = fpe->type; subfpe->name_length = len; subfpe->name = malloc (len + 1); - if (subfpe == NULL) + if (subfpe->name == NULL) { free(subfpe); continue; @@ -251,7 +253,7 @@ static int CatalogueResetFPE (FontPathElementPtr fpe) { /* Always just tell the caller to close and re-open */ - return FPEResetFailed; + return FPEResetFailed; } static int @@ -277,10 +279,10 @@ CatalogueFreeFPE (FontPathElementPtr fpe) } static int -CatalogueOpenFont (pointer client, FontPathElementPtr fpe, Mask flags, - char *name, int namelen, +CatalogueOpenFont (pointer client, FontPathElementPtr fpe, Mask flags, + char *name, int namelen, fsBitmapFormat format, fsBitmapFormatMask fmask, - XID id, FontPtr *pFont, char **aliasName, + XID id, FontPtr *pFont, char **aliasName, FontPtr non_cachable_font) { CataloguePtr cat = fpe->private; @@ -300,7 +302,7 @@ CatalogueOpenFont (pointer client, FontPathElementPtr fpe, Mask flags, if (status == Successful || status == FontNameAlias) return status; } - + return BadFontName; } @@ -314,7 +316,7 @@ CatalogueCloseFont (FontPathElementPtr fpe, FontPtr pFont) } static int -CatalogueListFonts (pointer client, FontPathElementPtr fpe, char *pat, +CatalogueListFonts (pointer client, FontPathElementPtr fpe, char *pat, int len, int max, FontNamesPtr names) { CataloguePtr cat = fpe->private; @@ -335,8 +337,8 @@ CatalogueListFonts (pointer client, FontPathElementPtr fpe, char *pat, } int -FontFileStartListFonts(pointer client, FontPathElementPtr fpe, - char *pat, int len, int max, +FontFileStartListFonts(pointer client, FontPathElementPtr fpe, + char *pat, int len, int max, pointer *privatep, int mark_aliases); typedef struct _LFWIData { @@ -345,7 +347,7 @@ typedef struct _LFWIData { } LFWIDataRec, *LFWIDataPtr; static int -CatalogueStartListFonts(pointer client, FontPathElementPtr fpe, +CatalogueStartListFonts(pointer client, FontPathElementPtr fpe, char *pat, int len, int max, pointer *privatep, int mark_aliases) { @@ -381,16 +383,16 @@ CatalogueStartListFonts(pointer client, FontPathElementPtr fpe, } static int -CatalogueStartListFontsWithInfo(pointer client, FontPathElementPtr fpe, - char *pat, int len, int max, +CatalogueStartListFontsWithInfo(pointer client, FontPathElementPtr fpe, + char *pat, int len, int max, pointer *privatep) { return CatalogueStartListFonts(client, fpe, pat, len, max, privatep, 0); } static int -CatalogueListNextFontWithInfo(pointer client, FontPathElementPtr fpe, - char **namep, int *namelenp, +CatalogueListNextFontWithInfo(pointer client, FontPathElementPtr fpe, + char **namep, int *namelenp, FontInfoPtr *pFontInfo, int *numFonts, pointer private) { @@ -419,15 +421,15 @@ CatalogueListNextFontWithInfo(pointer client, FontPathElementPtr fpe, } static int -CatalogueStartListFontsAndAliases(pointer client, FontPathElementPtr fpe, - char *pat, int len, int max, +CatalogueStartListFontsAndAliases(pointer client, FontPathElementPtr fpe, + char *pat, int len, int max, pointer *privatep) { return CatalogueStartListFonts(client, fpe, pat, len, max, privatep, 1); } static int -CatalogueListNextFontOrAlias(pointer client, FontPathElementPtr fpe, +CatalogueListNextFontOrAlias(pointer client, FontPathElementPtr fpe, char **namep, int *namelenp, char **resolvedp, int *resolvedlenp, pointer private) { @@ -474,3 +476,5 @@ CatalogueRegisterLocalFpeFunctions (void) CatalogueListNextFontOrAlias, FontFileEmptyBitmapSource); } + +#endif /* HAVE_READLINK */ |