Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
5fc22e64
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看板
提交
5fc22e64
编写于
8月 03, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Remove use of typeof()
上级
70e0f2a7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
src/hb-blob.c
src/hb-blob.c
+2
-2
src/hb-buffer.c
src/hb-buffer.c
+1
-1
src/hb-font.cc
src/hb-font.cc
+7
-7
src/hb-object-private.h
src/hb-object-private.h
+2
-2
未找到文件。
src/hb-blob.c
浏览文件 @
5fc22e64
...
...
@@ -84,7 +84,7 @@ hb_blob_create (const char *data,
{
hb_blob_t
*
blob
;
if
(
!
length
||
!
HB_OBJECT_DO_CREATE
(
blob
))
{
if
(
!
length
||
!
HB_OBJECT_DO_CREATE
(
hb_blob_t
,
blob
))
{
if
(
destroy
)
destroy
(
user_data
);
return
&
_hb_blob_nil
;
...
...
@@ -118,7 +118,7 @@ hb_blob_create_sub_blob (hb_blob_t *parent,
hb_blob_t
*
blob
;
const
char
*
pdata
;
if
(
!
length
||
offset
>=
parent
->
length
||
!
HB_OBJECT_DO_CREATE
(
blob
))
if
(
!
length
||
offset
>=
parent
->
length
||
!
HB_OBJECT_DO_CREATE
(
hb_blob_t
,
blob
))
return
&
_hb_blob_nil
;
pdata
=
hb_blob_lock
(
parent
);
...
...
src/hb-buffer.c
浏览文件 @
5fc22e64
...
...
@@ -78,7 +78,7 @@ hb_buffer_create (unsigned int pre_alloc_size)
{
hb_buffer_t
*
buffer
;
if
(
!
HB_OBJECT_DO_CREATE
(
buffer
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_buffer_t
,
buffer
))
return
&
_hb_buffer_nil
;
if
(
pre_alloc_size
)
...
...
src/hb-font.cc
浏览文件 @
5fc22e64
...
...
@@ -51,7 +51,7 @@ hb_font_callbacks_create (void)
{
hb_font_callbacks_t
*
fcallbacks
;
if
(
!
HB_OBJECT_DO_CREATE
(
fcallbacks
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_font_callbacks_t
,
fcallbacks
))
return
&
_hb_font_callbacks_nil
;
return
fcallbacks
;
...
...
@@ -82,7 +82,7 @@ hb_font_callbacks_copy (hb_font_callbacks_t *other_fcallbacks)
{
hb_font_callbacks_t
*
fcallbacks
;
if
(
!
HB_OBJECT_DO_CREATE
(
fcallbacks
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_font_callbacks_t
,
fcallbacks
))
return
&
_hb_font_callbacks_nil
;
*
fcallbacks
=
*
other_fcallbacks
;
...
...
@@ -115,7 +115,7 @@ hb_unicode_callbacks_create (void)
{
hb_unicode_callbacks_t
*
ucallbacks
;
if
(
!
HB_OBJECT_DO_CREATE
(
ucallbacks
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_unicode_callbacks_t
,
ucallbacks
))
return
&
_hb_unicode_callbacks_nil
;
return
ucallbacks
;
...
...
@@ -146,7 +146,7 @@ hb_unicode_callbacks_copy (hb_unicode_callbacks_t *other_ucallbacks)
{
hb_unicode_callbacks_t
*
ucallbacks
;
if
(
!
HB_OBJECT_DO_CREATE
(
ucallbacks
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_unicode_callbacks_t
,
ucallbacks
))
return
&
_hb_unicode_callbacks_nil
;
*
ucallbacks
=
*
other_ucallbacks
;
...
...
@@ -211,7 +211,7 @@ hb_face_create_for_tables (hb_get_table_func_t get_table,
{
hb_face_t
*
face
;
if
(
!
HB_OBJECT_DO_CREATE
(
face
))
{
if
(
!
HB_OBJECT_DO_CREATE
(
hb_face_t
,
face
))
{
if
(
destroy
)
destroy
(
user_data
);
return
&
_hb_face_nil
;
...
...
@@ -232,7 +232,7 @@ hb_face_create_for_data (hb_blob_t *blob,
{
hb_face_t
*
face
;
if
(
!
HB_OBJECT_DO_CREATE
(
face
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_face_t
,
face
))
return
&
_hb_face_nil
;
face
->
blob
=
hb_blob_reference
(
blob
);
...
...
@@ -331,7 +331,7 @@ hb_font_create (hb_face_t *face)
{
hb_font_t
*
font
;
if
(
!
HB_OBJECT_DO_CREATE
(
font
))
if
(
!
HB_OBJECT_DO_CREATE
(
hb_font_t
,
font
))
return
&
_hb_font_nil
;
font
->
face
=
hb_face_reference
(
face
);
...
...
src/hb-object-private.h
浏览文件 @
5fc22e64
...
...
@@ -73,9 +73,9 @@ typedef struct {
HB_OBJECT_DO_INIT_EXPR (obj); \
} HB_STMT_END
#define HB_OBJECT_DO_CREATE(obj) \
#define HB_OBJECT_DO_CREATE(
Type,
obj) \
HB_LIKELY (( \
(obj) =
/* XXX */
(typeof (obj)) calloc (1, sizeof (*(obj)
)), \
(obj) =
(Type *) calloc (1, sizeof (Type
)), \
HB_OBJECT_DO_INIT_EXPR (obj), \
(obj) \
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录