Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
cd28eb9f
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
未验证
提交
cd28eb9f
编写于
2月 24, 2018
作者:
E
Ebrahim Byagowi
提交者:
GitHub
2月 24, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add -Werror=unused-function check to Travis (#832)
上级
1ab16f45
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
23 deletion
+24
-23
.travis.yml
.travis.yml
+2
-2
src/hb-aat-layout.cc
src/hb-aat-layout.cc
+12
-12
test/api/test-set.c
test/api/test-set.c
+10
-9
未找到文件。
.travis.yml
浏览文件 @
cd28eb9f
...
...
@@ -6,8 +6,8 @@ language: cpp
env
:
global
:
-
CPPFLAGS=""
-
CFLAGS="-Werror --coverage"
-
CXXFLAGS="-Werror -Wno-deprecated-register --coverage"
# glib uses register and clang raises a warning
-
CFLAGS="-Werror -
Werror=unused-function -
-coverage"
-
CXXFLAGS="-Werror -W
error=unused-function -W
no-deprecated-register --coverage"
# glib uses register and clang raises a warning
-
LDFLAGS="--coverage"
-
CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
-
NOCONFIGURE=1
...
...
src/hb-aat-layout.cc
浏览文件 @
cd28eb9f
...
...
@@ -89,19 +89,19 @@ _get_trak (hb_face_t *face, hb_blob_t **blob = nullptr)
return
trak
;
}
static
inline
void
_hb_aat_layout_create
(
hb_face_t
*
face
)
{
OT
::
Sanitizer
<
AAT
::
morx
>
sanitizer
;
sanitizer
.
set_num_glyphs
(
face
->
get_num_glyphs
());
hb_blob_t
*
morx_blob
=
sanitizer
.
sanitize
(
face
->
reference_table
(
HB_AAT_TAG_MORX
));
OT
::
Sanitizer
<
AAT
::
morx
>::
lock_instance
(
morx_blob
);
//
static inline void
//
_hb_aat_layout_create (hb_face_t *face)
//
{
//
OT::Sanitizer<AAT::morx> sanitizer;
//
sanitizer.set_num_glyphs (face->get_num_glyphs ());
//
hb_blob_t *morx_blob = sanitizer.sanitize (face->reference_table (HB_AAT_TAG_MORX));
//
OT::Sanitizer<AAT::morx>::lock_instance (morx_blob);
if
(
0
)
{
OT
::
Sanitizer
<
AAT
::
Lookup
<
OT
::
GlyphID
>
>::
lock_instance
(
morx_blob
)
->
get_value
(
1
,
face
->
get_num_glyphs
());
}
}
//
if (0)
//
{
//
OT::Sanitizer<AAT::Lookup<OT::GlyphID> >::lock_instance (morx_blob)->get_value (1, face->get_num_glyphs ());
//
}
//
}
void
hb_aat_layout_substitute
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
...
...
test/api/test-set.c
浏览文件 @
cd28eb9f
...
...
@@ -121,15 +121,16 @@ test_set_basic (void)
hb_set_destroy
(
s
);
}
static
inline
void
print_set
(
hb_set_t
*
s
)
{
hb_codepoint_t
next
;
printf
(
"{"
);
for
(
next
=
HB_SET_VALUE_INVALID
;
hb_set_next
(
s
,
&
next
);
)
printf
(
"%d, "
,
next
);
printf
(
"}
\n
"
);
}
// static inline void
// print_set (hb_set_t *s)
// {
// hb_codepoint_t next;
// printf ("{");
// for (next = HB_SET_VALUE_INVALID; hb_set_next (s, &next); )
// printf ("%d, ", next);
// printf ("}\n");
// }
static
void
test_set_algebra
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录