mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibC: Stub out btowc
wint_t is also not supposed to be defined by sys/types.h, but should be defined in wchar.h instead. Since we require it for our definition of btowc, let's move it to the correct place.
This commit is contained in:
parent
ccef5fe234
commit
d364abe4d5
3 changed files with 9 additions and 2 deletions
|
@ -32,8 +32,6 @@ typedef char* caddr_t;
|
||||||
|
|
||||||
typedef int id_t;
|
typedef int id_t;
|
||||||
|
|
||||||
typedef __WINT_TYPE__ wint_t;
|
|
||||||
|
|
||||||
typedef uint32_t ino_t;
|
typedef uint32_t ino_t;
|
||||||
typedef int64_t off_t;
|
typedef int64_t off_t;
|
||||||
|
|
||||||
|
|
|
@ -153,4 +153,10 @@ long long wcstoll(const wchar_t*, wchar_t**, int)
|
||||||
dbgln("FIXME: Implement wcstoll()");
|
dbgln("FIXME: Implement wcstoll()");
|
||||||
TODO();
|
TODO();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wint_t btowc(int)
|
||||||
|
{
|
||||||
|
dbgln("FIXME: Implement btowc()");
|
||||||
|
TODO();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,8 @@ __BEGIN_DECLS
|
||||||
# define WEOF (0xffffffffu)
|
# define WEOF (0xffffffffu)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef __WINT_TYPE__ wint_t;
|
||||||
|
|
||||||
size_t wcslen(const wchar_t*);
|
size_t wcslen(const wchar_t*);
|
||||||
wchar_t* wcscpy(wchar_t*, const wchar_t*);
|
wchar_t* wcscpy(wchar_t*, const wchar_t*);
|
||||||
wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);
|
wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);
|
||||||
|
@ -27,5 +29,6 @@ wchar_t* wcsncat(wchar_t*, const wchar_t*, size_t);
|
||||||
wchar_t* wcstok(wchar_t*, const wchar_t*, wchar_t**);
|
wchar_t* wcstok(wchar_t*, const wchar_t*, wchar_t**);
|
||||||
long wcstol(const wchar_t*, wchar_t**, int);
|
long wcstol(const wchar_t*, wchar_t**, int);
|
||||||
long long wcstoll(const wchar_t*, wchar_t**, int);
|
long long wcstoll(const wchar_t*, wchar_t**, int);
|
||||||
|
wint_t btowc(int c);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue