Adding "indent.sh" to re-indent code; ran it!!!
This commit is contained in:
parent
16336cc854
commit
18f9cad6fe
98 changed files with 5798 additions and 9001 deletions
|
|
@ -33,6 +33,7 @@
|
|||
size_t mbstowcs(wchar_t *__restrict pwcs, const char *__restrict s, size_t n)
|
||||
{
|
||||
int length = strnlen(s, n);
|
||||
|
||||
// w is the index of pwcs, s is the index of s
|
||||
int w = 0, c = 0;
|
||||
|
||||
|
|
@ -41,9 +42,10 @@ size_t mbstowcs(wchar_t *__restrict pwcs, const char *__restrict s, size_t n)
|
|||
pwcs[w] = '\0';
|
||||
char first = s[c];
|
||||
int len = 0;
|
||||
|
||||
if ((first & 0x80) == 0)
|
||||
{
|
||||
pwcs[w] = (wchar_t) s[c];
|
||||
pwcs[w] = (wchar_t)s[c];
|
||||
len = 1;
|
||||
}
|
||||
else if ((first & 0xe0) == 0xc0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue