Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
22da1231
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看板
提交
22da1231
编写于
4月 24, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[map] Fix TODO
上级
4c6136e9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
8 deletion
+9
-8
src/hb-map.hh
src/hb-map.hh
+2
-4
src/hb-meta.hh
src/hb-meta.hh
+6
-0
src/hb-ot-cff1-table.cc
src/hb-ot-cff1-table.cc
+0
-1
src/hb-ot-cff2-table.cc
src/hb-ot-cff2-table.cc
+0
-1
src/hb.hh
src/hb.hh
+1
-2
未找到文件。
src/hb-map.hh
浏览文件 @
22da1231
...
...
@@ -34,11 +34,9 @@
* hb_hashmap_t
*/
/* TODO if K/V is signed integer, -1 is not a good default.
* Don't know how to get to -MAX using bit work. */
template
<
typename
K
,
typename
V
,
K
kINVALID
=
hb_is_pointer
(
K
)
?
0
:
(
K
)
-
1
,
V
vINVALID
=
hb_is_pointer
(
V
)
?
0
:
(
V
)
-
1
>
K
kINVALID
=
hb_is_pointer
(
K
)
?
0
:
hb_is_signed
(
K
)
?
hb_int_min
(
K
)
:
(
K
)
-
1
,
V
vINVALID
=
hb_is_pointer
(
V
)
?
0
:
hb_is_signed
(
V
)
?
hb_int_min
(
V
)
:
(
V
)
-
1
>
struct
hb_hashmap_t
{
HB_DELETE_COPY_ASSIGN
(
hb_hashmap_t
);
...
...
src/hb-meta.hh
浏览文件 @
22da1231
...
...
@@ -138,6 +138,12 @@ template <> struct hb_is_signed<uint32_t> { enum { value = false }; };
template
<
>
struct
hb_is_signed
<
uint64_t
>
{
enum
{
value
=
false
};
};
#define hb_is_signed(T) hb_is_signed<T>::value
template
<
typename
T
>
struct
hb_int_min
{
static
constexpr
T
value
=
0
;
};
template
<
>
struct
hb_int_min
<
char
>
{
static
constexpr
char
value
=
CHAR_MIN
;
};
template
<
>
struct
hb_int_min
<
int
>
{
static
constexpr
int
value
=
INT_MIN
;
};
template
<
>
struct
hb_int_min
<
long
>
{
static
constexpr
long
value
=
LONG_MIN
;
};
#define hb_int_min(T) hb_int_min<T>::value
template
<
bool
is_signed
>
struct
hb_signedness_int
;
template
<
>
struct
hb_signedness_int
<
false
>
{
typedef
unsigned
int
value
;
};
template
<
>
struct
hb_signedness_int
<
true
>
{
typedef
signed
int
value
;
};
...
...
src/hb-ot-cff1-table.cc
浏览文件 @
22da1231
...
...
@@ -26,7 +26,6 @@
#include "hb-ot-cff1-table.hh"
#include "hb-cff1-interp-cs.hh"
#include <limits.h>
using
namespace
CFF
;
...
...
src/hb-ot-cff2-table.cc
浏览文件 @
22da1231
...
...
@@ -26,7 +26,6 @@
#include "hb-ot-cff2-table.hh"
#include "hb-cff2-interp-cs.hh"
#include <limits.h>
using
namespace
CFF
;
...
...
src/hb.hh
浏览文件 @
22da1231
...
...
@@ -167,8 +167,7 @@
#include "hb-aat.h"
#define HB_AAT_H_IN
#include "hb-aat.h"
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <stddef.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录