mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
Compat work towards porting vim.
This commit is contained in:
parent
2e5b9d318f
commit
a356746d04
17 changed files with 200 additions and 77 deletions
15
LibC/ctype.h
15
LibC/ctype.h
|
@ -25,19 +25,8 @@ ALWAYS_INLINE int __isupper(int c)
|
|||
return c >= 'A' && c <= 'Z';
|
||||
}
|
||||
|
||||
ALWAYS_INLINE int __tolower(int c)
|
||||
{
|
||||
if (__isupper(c))
|
||||
return c | 0x20;
|
||||
return c;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE int __toupper(int c)
|
||||
{
|
||||
if (__islower(c))
|
||||
return c & ~0x20;
|
||||
return c;
|
||||
}
|
||||
int __tolower(int);
|
||||
int __toupper(int);
|
||||
|
||||
ALWAYS_INLINE int __isdigit(int c)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue