Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
c247ebdd
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
1 年多 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c247ebdd
编写于
2月 14, 2011
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more header fixes, minor warning fix
上级
5377715c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
6 deletion
+18
-6
include/wchar.h
include/wchar.h
+12
-4
include/wctype.h
include/wctype.h
+1
-0
src/ctype/wcwidth.c
src/ctype/wcwidth.c
+1
-0
src/stdlib/strtoimax.c
src/stdlib/strtoimax.c
+2
-2
src/stdlib/wcstoimax.c
src/stdlib/wcstoimax.c
+1
-0
src/stdlib/wcstoumax.c
src/stdlib/wcstoumax.c
+1
-0
未找到文件。
include/wchar.h
浏览文件 @
c247ebdd
...
...
@@ -10,12 +10,19 @@ extern "C" {
#define __NEED_size_t
#define __NEED_wchar_t
#define __NEED_wint_t
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
#define __NEED_wctype_t
#endif
#include <bits/alltypes.h>
#undef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void*)0)
#endif
#undef WCHAR_MIN
#undef WCHAR_MAX
...
...
@@ -74,9 +81,6 @@ size_t mbrlen (const char *, size_t, mbstate_t *);
size_t
mbsrtowcs
(
wchar_t
*
,
const
char
**
,
size_t
,
mbstate_t
*
);
size_t
wcsrtombs
(
char
*
,
const
wchar_t
**
,
size_t
,
mbstate_t
*
);
int
wcwidth
(
wchar_t
);
int
wcswidth
(
const
wchar_t
*
,
size_t
);
float
wcstof
(
const
wchar_t
*
,
wchar_t
**
);
double
wcstod
(
const
wchar_t
*
,
wchar_t
**
);
long
double
wcstold
(
const
wchar_t
*
,
wchar_t
**
);
...
...
@@ -126,6 +130,9 @@ size_t wcsftime (wchar_t *, size_t, const wchar_t *, const struct tm *);
#undef iswdigit
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
int
wcwidth
(
wchar_t
);
int
wcswidth
(
const
wchar_t
*
,
size_t
);
int
iswalnum
(
wint_t
);
int
iswalpha
(
wint_t
);
int
iswblank
(
wint_t
);
...
...
@@ -142,8 +149,9 @@ int iswctype(wint_t, wctype_t);
wint_t
towlower
(
wint_t
);
wint_t
towupper
(
wint_t
);
wctype_t
wctype
(
const
char
*
);
#undef iswdigit
#define iswdigit(a) ((unsigned)(a)-'0' < 10)
#endif
#ifdef __cplusplus
}
...
...
include/wctype.h
浏览文件 @
c247ebdd
...
...
@@ -35,6 +35,7 @@ wint_t towupper(wint_t);
wctrans_t
wctrans
(
const
char
*
);
wctype_t
wctype
(
const
char
*
);
#undef iswdigit
#define iswdigit(a) ((unsigned)((a)-L'0') < 10)
#ifdef __cplusplus
...
...
src/ctype/wcwidth.c
浏览文件 @
c247ebdd
#include <inttypes.h>
#include <wchar.h>
#include <wctype.h>
#define R(a,b,w) { (b), (w)/2, (b)-(a) }
...
...
src/stdlib/strtoimax.c
浏览文件 @
c247ebdd
...
...
@@ -4,7 +4,7 @@
intmax_t
strtoimax
(
const
char
*
s1
,
char
**
p
,
int
base
)
{
const
unsigned
char
*
s
=
s1
;
const
unsigned
char
*
s
=
(
const
void
*
)
s1
;
int
sign
=
0
;
uintmax_t
x
;
...
...
@@ -15,7 +15,7 @@ intmax_t strtoimax(const char *s1, char **p, int base)
if
(
*
s
==
'-'
)
sign
=
*
s
++
;
else
if
(
*
s
==
'+'
)
s
++
;
x
=
strtoumax
(
s
,
p
,
base
);
x
=
strtoumax
(
(
const
void
*
)
s
,
p
,
base
);
if
(
x
>
INTMAX_MAX
)
{
if
(
!
sign
||
-
x
!=
INTMAX_MIN
)
errno
=
ERANGE
;
...
...
src/stdlib/wcstoimax.c
浏览文件 @
c247ebdd
#include <wchar.h>
#include <wctype.h>
#include <inttypes.h>
#include <errno.h>
...
...
src/stdlib/wcstoumax.c
浏览文件 @
c247ebdd
#include <wchar.h>
#include <wctype.h>
#include <stdlib.h>
#include <inttypes.h>
#include <errno.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录