Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
a02d8648
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,发现更多精彩内容 >>
提交
a02d8648
编写于
8月 08, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add check-exported-symbols.sh
And misc linking fixes.
上级
4c8ac4f4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
46 addition
and
5 deletion
+46
-5
src/Makefile.am
src/Makefile.am
+1
-0
src/check-exported-symbols.sh
src/check-exported-symbols.sh
+40
-0
src/check-internal-symbols.sh
src/check-internal-symbols.sh
+1
-1
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+1
-1
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+3
-3
未找到文件。
src/Makefile.am
浏览文件 @
a02d8648
...
@@ -241,6 +241,7 @@ test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
...
@@ -241,6 +241,7 @@ test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
dist_check_SCRIPTS
=
\
dist_check_SCRIPTS
=
\
check-c-linkage-decls.sh
\
check-c-linkage-decls.sh
\
check-header-guards.sh
\
check-header-guards.sh
\
check-exported-symbols.sh
\
check-includes.sh
\
check-includes.sh
\
check-internal-symbols.sh
\
check-internal-symbols.sh
\
check-static-inits.sh
\
check-static-inits.sh
\
...
...
src/check-exported-symbols.sh
0 → 100755
浏览文件 @
a02d8648
#!/bin/sh
LC_ALL
=
C
export
LC_ALL
test
-z
"
$srcdir
"
&&
srcdir
=
.
test
-z
"
$MAKE
"
&&
MAKE
=
make
stat
=
0
if
which nm 2>/dev/null
>
/dev/null
;
then
:
else
echo
"check-exported-symbols.sh: 'nm' not found; skipping test"
exit
77
fi
defs
=
"harfbuzz.def"
$MAKE
$defs
>
/dev/null
tested
=
false
for
def
in
$defs
;
do
lib
=
`
echo
"
$def
"
|
sed
's/[.]def$//;s@.*/@@'
`
so
=
.libs/lib
${
lib
}
.so
if
test
-f
"
$so
"
;
then
echo
"Checking that
$so
has the same symbol list as
$def
"
{
echo
EXPORTS
nm
"
$so
"
|
grep
' [BCDGINRSTVW] '
|
grep
-v
' T _fini\>\| T _init\>'
|
cut
-d
' '
-f3
stat
=
1
# cheat: copy the last line from the def file!
tail
-n1
"
$def
"
}
| diff
"
$def
"
-
>
&2
||
stat
=
1
tested
=
true
fi
done
if
!
$tested
;
then
echo
"check-exported-symbols.sh: libharfbuzz shared library not found; skipping test"
exit
77
fi
exit
$stat
src/check-internal-symbols.sh
浏览文件 @
a02d8648
...
@@ -19,7 +19,7 @@ for suffix in .so; do
...
@@ -19,7 +19,7 @@ for suffix in .so; do
so
=
`
echo
.libs/libharfbuzz
$suffix
`
so
=
`
echo
.libs/libharfbuzz
$suffix
`
if
test
-f
"
$so
"
;
then
if
test
-f
"
$so
"
;
then
echo
"Checking that we are not exposing internal symbols"
echo
"Checking that we are not exposing internal symbols"
if
nm
$so
|
grep
' [T
W] '
|
grep
-v
' T _fini\>\| T _init\>\| T hb_'
;
then
if
nm
"
$so
"
|
grep
' [BCDGINRSTV
W] '
|
grep
-v
' T _fini\>\| T _init\>\| T hb_'
;
then
echo
"Ouch, internal symbols exposed"
echo
"Ouch, internal symbols exposed"
stat
=
1
stat
=
1
fi
fi
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
a02d8648
...
@@ -57,7 +57,7 @@ indic_options_init (void)
...
@@ -57,7 +57,7 @@ indic_options_init (void)
return
u
;
return
u
;
}
}
inline
indic_options_t
static
inline
indic_options_t
indic_options
(
void
)
indic_options
(
void
)
{
{
static
indic_options_union_t
options
;
static
indic_options_union_t
options
;
...
...
src/hb-ot-shape.cc
浏览文件 @
a02d8648
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#include "hb-set-private.hh"
#include "hb-set-private.hh"
hb_tag_t
common_features
[]
=
{
static
hb_tag_t
common_features
[]
=
{
HB_TAG
(
'c'
,
'c'
,
'm'
,
'p'
),
HB_TAG
(
'c'
,
'c'
,
'm'
,
'p'
),
HB_TAG
(
'l'
,
'i'
,
'g'
,
'a'
),
HB_TAG
(
'l'
,
'i'
,
'g'
,
'a'
),
HB_TAG
(
'l'
,
'o'
,
'c'
,
'l'
),
HB_TAG
(
'l'
,
'o'
,
'c'
,
'l'
),
...
@@ -50,7 +50,7 @@ hb_tag_t common_features[] = {
...
@@ -50,7 +50,7 @@ hb_tag_t common_features[] = {
};
};
hb_tag_t
horizontal_features
[]
=
{
static
hb_tag_t
horizontal_features
[]
=
{
HB_TAG
(
'c'
,
'a'
,
'l'
,
't'
),
HB_TAG
(
'c'
,
'a'
,
'l'
,
't'
),
HB_TAG
(
'c'
,
'l'
,
'i'
,
'g'
),
HB_TAG
(
'c'
,
'l'
,
'i'
,
'g'
),
HB_TAG
(
'c'
,
'u'
,
'r'
,
's'
),
HB_TAG
(
'c'
,
'u'
,
'r'
,
's'
),
...
@@ -63,7 +63,7 @@ hb_tag_t horizontal_features[] = {
...
@@ -63,7 +63,7 @@ hb_tag_t horizontal_features[] = {
* According to the spec, valt and vpal are also mutually exclusive.
* According to the spec, valt and vpal are also mutually exclusive.
* But we apply them all for now.
* But we apply them all for now.
*/
*/
hb_tag_t
vertical_features
[]
=
{
static
hb_tag_t
vertical_features
[]
=
{
HB_TAG
(
'v'
,
'a'
,
'l'
,
't'
),
HB_TAG
(
'v'
,
'a'
,
'l'
,
't'
),
HB_TAG
(
'v'
,
'e'
,
'r'
,
't'
),
HB_TAG
(
'v'
,
'e'
,
'r'
,
't'
),
HB_TAG
(
'v'
,
'k'
,
'r'
,
'n'
),
HB_TAG
(
'v'
,
'k'
,
'r'
,
'n'
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录