Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
7d3a1263
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,发现更多精彩内容 >>
提交
7d3a1263
编写于
4月 29, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Define HB_FUNC for portability to non-gcc
上级
fa030175
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
7 deletion
+16
-7
src/hb-open-type-private.hh
src/hb-open-type-private.hh
+6
-6
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+1
-1
src/hb-private.h
src/hb-private.h
+9
-0
未找到文件。
src/hb-open-type-private.hh
浏览文件 @
7d3a1263
...
...
@@ -127,7 +127,7 @@ ASSERT_STATIC (sizeof (Type) + 1 <= sizeof (_Null##Type))
#define TRACE_SANITIZE() \
HB_STMT_START { \
if (HB_DEBUG_SANITIZE) \
_hb_trace ("SANITIZE",
__PRETTY_FUNCTION__
, this, sanitize_depth, HB_DEBUG_SANITIZE); \
_hb_trace ("SANITIZE",
HB_FUNC
, this, sanitize_depth, HB_DEBUG_SANITIZE); \
} HB_STMT_END
...
...
@@ -266,7 +266,7 @@ struct Sanitizer
retry:
if
(
HB_DEBUG_SANITIZE
)
fprintf
(
stderr
,
"Sanitizer %p start %s
\n
"
,
blob
,
__PRETTY_FUNCTION__
);
fprintf
(
stderr
,
"Sanitizer %p start %s
\n
"
,
blob
,
HB_FUNC
);
_hb_sanitize_init
(
context
,
blob
);
...
...
@@ -277,7 +277,7 @@ struct Sanitizer
if
(
context
->
edit_count
)
{
if
(
HB_DEBUG_SANITIZE
)
fprintf
(
stderr
,
"Sanitizer %p passed first round with %d edits; doing a second round %s
\n
"
,
blob
,
context
->
edit_count
,
__PRETTY_FUNCTION__
);
blob
,
context
->
edit_count
,
HB_FUNC
);
/* sanitize again to ensure no toe-stepping */
context
->
edit_count
=
0
;
...
...
@@ -285,7 +285,7 @@ struct Sanitizer
if
(
context
->
edit_count
)
{
if
(
HB_DEBUG_SANITIZE
)
fprintf
(
stderr
,
"Sanitizer %p requested %d edits in second round; FAILLING %s
\n
"
,
blob
,
context
->
edit_count
,
__PRETTY_FUNCTION__
);
blob
,
context
->
edit_count
,
HB_FUNC
);
sane
=
false
;
}
}
...
...
@@ -296,13 +296,13 @@ struct Sanitizer
if
(
edit_count
&&
!
hb_blob_is_writable
(
blob
)
&&
hb_blob_try_writable
(
blob
))
{
/* ok, we made it writable by relocating. try again */
if
(
HB_DEBUG_SANITIZE
)
fprintf
(
stderr
,
"Sanitizer %p retry %s
\n
"
,
blob
,
__PRETTY_FUNCTION__
);
fprintf
(
stderr
,
"Sanitizer %p retry %s
\n
"
,
blob
,
HB_FUNC
);
goto
retry
;
}
}
if
(
HB_DEBUG_SANITIZE
)
fprintf
(
stderr
,
"Sanitizer %p %s %s
\n
"
,
blob
,
sane
?
"passed"
:
"FAILED"
,
__PRETTY_FUNCTION__
);
fprintf
(
stderr
,
"Sanitizer %p %s %s
\n
"
,
blob
,
sane
?
"passed"
:
"FAILED"
,
HB_FUNC
);
if
(
sane
)
return
blob
;
else
{
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
7d3a1263
...
...
@@ -38,7 +38,7 @@
#define TRACE_APPLY() \
HB_STMT_START { \
if (HB_DEBUG_APPLY) \
_hb_trace ("APPLY",
__PRETTY_FUNCTION__
, this, apply_depth, HB_DEBUG_APPLY); \
_hb_trace ("APPLY",
HB_FUNC
, this, apply_depth, HB_DEBUG_APPLY); \
} HB_STMT_END
...
...
src/hb-private.h
浏览文件 @
7d3a1263
...
...
@@ -145,6 +145,15 @@
#endif
#if __GNUC__ >= 3
#define HB_FUNC __PRETTY_FUNCTION__
#elif defined(_MSC_VER)
#define HB_FUNC __FUNCSIG__
#else
#define HB_FUNC __func__
#endif
/* Return the number of 1 bits in mask.
*
* GCC 3.4 supports a "population count" builtin, which on many targets is
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录