Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
8874eef8
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看板
提交
8874eef8
编写于
1月 17, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add pragram GCC diagnostic ignored "-Wunused-macros"
上级
cc8e9a43
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
0 deletion
+15
-0
src/gen-indic-table.py
src/gen-indic-table.py
+3
-0
src/gen-use-table.py
src/gen-use-table.py
+3
-0
src/hb-blob.cc
src/hb-blob.cc
+3
-0
src/hb-ot-shape-complex-indic-table.cc
src/hb-ot-shape-complex-indic-table.cc
+3
-0
src/hb-ot-shape-complex-use-table.cc
src/hb-ot-shape-complex-use-table.cc
+3
-0
未找到文件。
src/gen-indic-table.py
浏览文件 @
8874eef8
...
...
@@ -131,6 +131,8 @@ for i in range (2):
what
=
[
"INDIC_SYLLABIC_CATEGORY"
,
"INDIC_MATRA_CATEGORY"
]
what_short
=
[
"ISC"
,
"IMC"
]
print
(
'#pragma GCC diagnostic push'
)
print
(
'#pragma GCC diagnostic ignored "-Wunused-macros"'
)
for
i
in
range
(
2
):
print
()
vv
=
sorted
(
values
[
i
].
keys
())
...
...
@@ -148,6 +150,7 @@ for i in range (2):
(
what_short
[
i
],
s
,
what
[
i
],
v
.
upper
(),
' '
*
((
48
-
1
-
len
(
what
[
i
])
-
1
-
len
(
v
))
//
8
),
values
[
i
][
v
],
v
))
print
(
'#pragma GCC diagnostic pop'
)
print
()
print
(
"#define _(S,M) INDIC_COMBINE_CATEGORIES (ISC_##S, IMC_##M)"
)
print
()
...
...
src/gen-use-table.py
浏览文件 @
8874eef8
...
...
@@ -455,6 +455,8 @@ num = 0
offset
=
0
starts
=
[]
ends
=
[]
print
(
'#pragma GCC diagnostic push'
)
print
(
'#pragma GCC diagnostic ignored "-Wunused-macros"'
)
for
k
,
v
in
sorted
(
use_mapping
.
items
()):
if
k
in
use_positions
and
use_positions
[
k
]:
continue
print
(
"#define %s USE_%s /* %s */"
%
(
k
,
k
,
v
.
__name__
[
3
:]))
...
...
@@ -463,6 +465,7 @@ for k,v in sorted(use_positions.items()):
for
suf
in
v
.
keys
():
tag
=
k
+
suf
print
(
"#define %s USE_%s"
%
(
tag
,
tag
))
print
(
'#pragma GCC diagnostic pop'
)
print
(
""
)
print
(
"static const USE_TABLE_ELEMENT_TYPE use_table[] = {"
)
for
u
in
uu
:
...
...
src/hb-blob.cc
浏览文件 @
8874eef8
...
...
@@ -31,7 +31,10 @@
* https://www.oracle.com/technetwork/articles/servers-storage-dev/standardheaderfiles-453865.html
*/
#ifndef _POSIX_C_SOURCE
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-macros"
#define _POSIX_C_SOURCE 200809L
#pragma GCC diagnostic pop
#endif
#include "hb.hh"
...
...
src/hb-ot-shape-complex-indic-table.cc
浏览文件 @
8874eef8
...
...
@@ -16,6 +16,8 @@
#include "hb-ot-shape-complex-indic.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-macros"
#define ISC_A INDIC_SYLLABIC_CATEGORY_AVAGRAHA
/* 16 chars; Avagraha */
#define ISC_Bi INDIC_SYLLABIC_CATEGORY_BINDU
/* 83 chars; Bindu */
...
...
@@ -69,6 +71,7 @@
#define IMC_TLR INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT
/* 4 chars; Top_And_Left_And_Right */
#define IMC_TR INDIC_MATRA_CATEGORY_TOP_AND_RIGHT
/* 13 chars; Top_And_Right */
#define IMC_VOL INDIC_MATRA_CATEGORY_VISUAL_ORDER_LEFT
/* 19 chars; Visual_Order_Left */
#pragma GCC diagnostic pop
#define _(S,M) INDIC_COMBINE_CATEGORIES (ISC_##S, IMC_##M)
...
...
src/hb-ot-shape-complex-use-table.cc
浏览文件 @
8874eef8
...
...
@@ -17,6 +17,8 @@
#include "hb-ot-shape-complex-use.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-macros"
#define B USE_B
/* BASE */
#define CGJ USE_CGJ
/* CGJ */
#define CS USE_CS
/* CONS_WITH_STACKER */
...
...
@@ -55,6 +57,7 @@
#define VMBlw USE_VMBlw
#define VMPst USE_VMPst
#define VMAbv USE_VMAbv
#pragma GCC diagnostic pop
static
const
USE_TABLE_ELEMENT_TYPE
use_table
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录