Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e22a48ac
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
大约 1 年 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e22a48ac
编写于
7月 23, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
One more visibility trick
Should fix Windows build again.
上级
e57a638b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
19 deletion
+14
-19
src/hb-common.cc
src/hb-common.cc
+9
-0
src/hb-private.hh
src/hb-private.hh
+2
-18
src/hb-static.cc
src/hb-static.cc
+3
-1
未找到文件。
src/hb-common.cc
浏览文件 @
e22a48ac
...
@@ -1069,3 +1069,12 @@ hb_variation_to_string (hb_variation_t *variation,
...
@@ -1069,3 +1069,12 @@ hb_variation_to_string (hb_variation_t *variation,
memcpy
(
buf
,
s
,
len
);
memcpy
(
buf
,
s
,
len
);
buf
[
len
]
=
'\0'
;
buf
[
len
]
=
'\0'
;
}
}
/* If there is no visibility control, then hb-static.cc will NOT
* define anything. Instead, we get it to define one set in here
* only, so only libharfbuzz.so defines them, not other libs. */
#ifdef HB_NO_VISIBILITY
#undef HB_NO_VISIBILITY
#include "hb-static.cc"
#define HB_NO_VISIBILITY 1
#endif
src/hb-private.hh
浏览文件 @
e22a48ac
...
@@ -375,16 +375,8 @@ typedef uint64_t hb_vector_size_impl_t;
...
@@ -375,16 +375,8 @@ typedef uint64_t hb_vector_size_impl_t;
#define HB_NULL_POOL_SIZE 264
#define HB_NULL_POOL_SIZE 264
#ifdef HB_NO_VISIBILITY
static
#else
extern
HB_INTERNAL
extern
HB_INTERNAL
#endif
hb_vector_size_impl_t
const
_hb_NullPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)];
hb_vector_size_impl_t
const
_hb_NullPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)]
#ifdef HB_NO_VISIBILITY
=
{}
#endif
;
/* Generic nul-content Null objects. */
/* Generic nul-content Null objects. */
template
<
typename
Type
>
template
<
typename
Type
>
...
@@ -413,16 +405,8 @@ static_assert (Namespace::Type::min_size + 1 <= sizeof (_Null##Type), "Null pool
...
@@ -413,16 +405,8 @@ static_assert (Namespace::Type::min_size + 1 <= sizeof (_Null##Type), "Null pool
* for correct operation. It only exist to catch and divert program logic bugs instead of
* for correct operation. It only exist to catch and divert program logic bugs instead of
* causing bad memory access. So, races there are not actually introducing incorrectness
* causing bad memory access. So, races there are not actually introducing incorrectness
* in the code. Has ~12kb binary size overhead to have it, also clang build fails with it. */
* in the code. Has ~12kb binary size overhead to have it, also clang build fails with it. */
#ifdef HB_NO_VISIBILITY
static
#else
extern
HB_INTERNAL
extern
HB_INTERNAL
#endif
/*thread_local*/
hb_vector_size_impl_t
_hb_CrapPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)];
/*thread_local*/
hb_vector_size_impl_t
_hb_CrapPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)]
#ifdef HB_NO_VISIBILITY
=
{}
#endif
;
/* CRAP pool: Common Region for Access Protection. */
/* CRAP pool: Common Region for Access Protection. */
template
<
typename
Type
>
template
<
typename
Type
>
...
...
src/hb-static.cc
浏览文件 @
e22a48ac
...
@@ -31,9 +31,9 @@
...
@@ -31,9 +31,9 @@
#include "hb-ot-maxp-table.hh"
#include "hb-ot-maxp-table.hh"
#ifndef HB_NO_VISIBILITY
#ifndef HB_NO_VISIBILITY
hb_vector_size_impl_t
const
_hb_NullPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)]
=
{};
hb_vector_size_impl_t
const
_hb_NullPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)]
=
{};
/*thread_local*/
hb_vector_size_impl_t
_hb_CrapPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)]
=
{};
/*thread_local*/
hb_vector_size_impl_t
_hb_CrapPool
[(
HB_NULL_POOL_SIZE
+
sizeof
(
hb_vector_size_impl_t
)
-
1
)
/
sizeof
(
hb_vector_size_impl_t
)]
=
{};
#endif
void
void
hb_face_t
::
load_num_glyphs
(
void
)
const
hb_face_t
::
load_num_glyphs
(
void
)
const
...
@@ -52,3 +52,5 @@ hb_face_t::load_upem (void) const
...
@@ -52,3 +52,5 @@ hb_face_t::load_upem (void) const
upem
=
head_table
->
get_upem
();
upem
=
head_table
->
get_upem
();
hb_blob_destroy
(
head_blob
);
hb_blob_destroy
(
head_blob
);
}
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录