Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
3bf1ce74
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看板
提交
3bf1ce74
编写于
11月 14, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[shaper] Rename
上级
c221dc0b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
src/hb-shape-plan.cc
src/hb-shape-plan.cc
+1
-1
src/hb-shape.cc
src/hb-shape.cc
+1
-1
src/hb-shaper.cc
src/hb-shaper.cc
+8
-8
src/hb-shaper.hh
src/hb-shaper.hh
+2
-2
未找到文件。
src/hb-shape-plan.cc
浏览文件 @
3bf1ce74
...
...
@@ -108,7 +108,7 @@ hb_shape_plan_key_t::init (bool copy,
}
else
{
const
hb_shaper_
pair_static
_t
*
shapers
=
_hb_shapers_get
();
const
hb_shaper_
entry
_t
*
shapers
=
_hb_shapers_get
();
for
(
unsigned
int
i
=
0
;
i
<
HB_SHAPERS_COUNT
;
i
++
)
if
(
false
)
;
...
...
src/hb-shape.cc
浏览文件 @
3bf1ce74
...
...
@@ -63,7 +63,7 @@ static struct hb_shaper_list_lazy_loader_t : hb_lazy_loader_t<const char *,
if
(
unlikely
(
!
shaper_list
))
return
nullptr
;
const
hb_shaper_
pair_static
_t
*
shapers
=
_hb_shapers_get
();
const
hb_shaper_
entry
_t
*
shapers
=
_hb_shapers_get
();
unsigned
int
i
;
for
(
i
=
0
;
i
<
HB_SHAPERS_COUNT
;
i
++
)
shaper_list
[
i
]
=
shapers
[
i
].
name
;
...
...
src/hb-shaper.cc
浏览文件 @
3bf1ce74
...
...
@@ -29,7 +29,7 @@
#include "hb-machinery.hh"
static
const
hb_shaper_
pair_static
_t
all_shapers
[]
=
{
static
const
hb_shaper_
entry
_t
all_shapers
[]
=
{
#define HB_SHAPER_IMPLEMENT(name) {#name, _hb_##name##_shape},
#include "hb-shaper-list.hh"
#undef HB_SHAPER_IMPLEMENT
...
...
@@ -39,16 +39,16 @@ static const hb_shaper_pair_static_t all_shapers[] = {
static
void
free_static_shapers
(
void
);
#endif
static
struct
hb_shapers_lazy_loader_t
:
hb_lazy_loader_t
<
const
hb_shaper_
pair_static
_t
,
static
struct
hb_shapers_lazy_loader_t
:
hb_lazy_loader_t
<
const
hb_shaper_
entry
_t
,
hb_shapers_lazy_loader_t
>
{
static
inline
hb_shaper_
pair_static
_t
*
create
(
void
)
static
inline
hb_shaper_
entry
_t
*
create
(
void
)
{
char
*
env
=
getenv
(
"HB_SHAPER_LIST"
);
if
(
!
env
||
!*
env
)
return
nullptr
;
hb_shaper_
pair_static_t
*
shapers
=
(
hb_shaper_pair_static
_t
*
)
calloc
(
1
,
sizeof
(
all_shapers
));
hb_shaper_
entry_t
*
shapers
=
(
hb_shaper_entry
_t
*
)
calloc
(
1
,
sizeof
(
all_shapers
));
if
(
unlikely
(
!
shapers
))
return
nullptr
;
...
...
@@ -68,7 +68,7 @@ static struct hb_shapers_lazy_loader_t : hb_lazy_loader_t<const hb_shaper_pair_s
0
==
strncmp
(
shapers
[
j
].
name
,
p
,
end
-
p
))
{
/* Reorder this shaper to position i */
struct
hb_shaper_
pair_static
_t
t
=
shapers
[
j
];
struct
hb_shaper_
entry
_t
t
=
shapers
[
j
];
memmove
(
&
shapers
[
i
+
1
],
&
shapers
[
i
],
sizeof
(
shapers
[
i
])
*
(
j
-
i
));
shapers
[
i
]
=
t
;
i
++
;
...
...
@@ -86,11 +86,11 @@ static struct hb_shapers_lazy_loader_t : hb_lazy_loader_t<const hb_shaper_pair_s
return
shapers
;
}
static
inline
void
destroy
(
const
hb_shaper_
pair_static
_t
*
p
)
static
inline
void
destroy
(
const
hb_shaper_
entry
_t
*
p
)
{
free
((
void
*
)
p
);
}
static
inline
const
hb_shaper_
pair_static
_t
*
get_null
(
void
)
static
inline
const
hb_shaper_
entry
_t
*
get_null
(
void
)
{
return
all_shapers
;
}
...
...
@@ -104,7 +104,7 @@ void free_static_shapers (void)
}
#endif
const
hb_shaper_
pair_static
_t
*
const
hb_shaper_
entry
_t
*
_hb_shapers_get
(
void
)
{
return
static_shapers
.
get_unconst
();
...
...
src/hb-shaper.hh
浏览文件 @
3bf1ce74
...
...
@@ -40,12 +40,12 @@ typedef hb_bool_t hb_shape_func_t (hb_shape_plan_t *shape_plan,
#include "hb-shaper-list.hh"
#undef HB_SHAPER_IMPLEMENT
struct
hb_shaper_
pair_static
_t
{
struct
hb_shaper_
entry
_t
{
char
name
[
16
];
hb_shape_func_t
*
func
;
};
HB_INTERNAL
const
hb_shaper_
pair_static
_t
*
HB_INTERNAL
const
hb_shaper_
entry
_t
*
_hb_shapers_get
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录