Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Wagner
fontconfig
Commits
8208f99f
Commit
8208f99f
authored
Sep 03, 2018
by
Akira TAGOH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the build issue with --enable-static
Fixes
fontconfig/fontconfig#109
parent
844d8709
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
27 deletions
+28
-27
doc/fcstring.fncs
doc/fcstring.fncs
+12
-0
fontconfig/fontconfig.h
fontconfig/fontconfig.h
+4
-0
src/fcint.h
src/fcint.h
+0
-4
test/test-bz106632.c
test/test-bz106632.c
+12
-23
No files found.
doc/fcstring.fncs
View file @
8208f99f
...
...
@@ -223,6 +223,18 @@ This is just a wrapper around free(3) which helps track memory usage of
strings within the fontconfig library.
@@
@RET@ FcChar8 *
@FUNC@ FcStrBuildFilename
@TYPE1@ const FcChar8 * @ARG1@ path
@TYPE2@ ...
@PURPOSE@ Concatenate strings as a file path
@DESC@
Creates a filename from the given elements of strings as file paths
and concatenate them with the appropriate file separator.
Arguments must be null-terminated.
This returns a newly-allocated memory which should be freed when no longer needed.
@@
@RET@ FcChar8 *
@FUNC@ FcStrDirname
@TYPE1@ const FcChar8 * @ARG1@ file
...
...
fontconfig/fontconfig.h
View file @
8208f99f
...
...
@@ -1076,6 +1076,10 @@ FcUtf16Len (const FcChar8 *string,
int
*
nchar
,
int
*
wchar
);
FcPublic
FcChar8
*
FcStrBuildFilename
(
const
FcChar8
*
path
,
...);
FcPublic
FcChar8
*
FcStrDirname
(
const
FcChar8
*
file
);
...
...
src/fcint.h
View file @
8208f99f
...
...
@@ -1282,10 +1282,6 @@ FcStrUsesHome (const FcChar8 *s);
FcPrivate
FcBool
FcStrIsAbsoluteFilename
(
const
FcChar8
*
s
);
FcPrivate
FcChar8
*
FcStrBuildFilename
(
const
FcChar8
*
path
,
...);
FcPrivate
FcChar8
*
FcStrLastSlash
(
const
FcChar8
*
path
);
...
...
test/test-bz106632.c
View file @
8208f99f
...
...
@@ -25,25 +25,26 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
#ifndef HAVE_STRUCT_DIRENT_D_TYPE
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
#include "fcstr.c"
#undef FcConfigBuildFonts
#undef FcConfigCreate
#undef FcConfigGetCurrent
#undef FcConfigParseAndLoadFromMemory
#undef FcConfigUptoDate
#undef FcFontList
#undef FcInitReinitialize
#undef FcPatternCreate
#undef FcPatternDestroy
#include <fontconfig/fontconfig.h>
#ifdef _WIN32
# define FC_DIR_SEPARATOR '\\'
# define FC_DIR_SEPARATOR_S "\\"
#else
# define FC_DIR_SEPARATOR '/'
# define FC_DIR_SEPARATOR_S "/"
#endif
#ifdef HAVE_MKDTEMP
#define fc_mkdtemp mkdtemp
#else
...
...
@@ -154,18 +155,6 @@ unlink_dirs (const char *dir)
return
ret
;
}
FcChar8
*
FcLangNormalize
(
const
FcChar8
*
lang
)
{
return
NULL
;
}
FcChar8
*
FcConfigHome
(
void
)
{
return
NULL
;
}
int
main
(
void
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment