[SDK] Big update

Signed-off-by: Quinn Stephens <quinn@osmora.org>
This commit is contained in:
2025-06-11 20:00:34 -04:00
parent e3f81a4c08
commit 5c52adf492
26 changed files with 3278 additions and 106 deletions

View File

@@ -1,6 +1,6 @@
/*++
Copyright (c) 2024, Quinn Stephens.
Copyright (c) 2024-2025, Quinn Stephens.
Provided under the BSD 3-Clause license.
Module Name:
@@ -33,7 +33,7 @@ print_hex (
n = 0;
shift = 28;
while (n < maxlen && shift >= 0) {
x = (num >> shift) & 0xf;
x = (num >> shift) & 0xF;
if (x >= 0xa) {
*dest = 'a' + (x - 0xa);
} else {

View File

@@ -1,6 +1,6 @@
/*++
Copyright (c) 2024, Quinn Stephens.
Copyright (c) 2024-2025, Quinn Stephens.
Provided under the BSD 3-Clause license.
Module Name:
@@ -64,7 +64,7 @@ memmove (
/* Check for overlap */
if (src > dest || ((char *)src + count) < (char *)dest) {
/* Low-to-high copy, use memcpy() */
/* Low-to-high copy */
return memcpy(dest, src, count);
}

View File

@@ -1,6 +1,6 @@
/*++
Copyright (c) 2024, Quinn Stephens.
Copyright (c) 2024-2025, Quinn Stephens.
Provided under the BSD 3-Clause license.
Module Name:
@@ -50,8 +50,8 @@ strnlen (
int
strcmp (
const char* s1,
const char* s2
const char *s1,
const char *s2
)
{
@@ -69,8 +69,8 @@ strcmp (
int
strncmp (
const char* s1,
const char* s2,
const char *s1,
const char *s2,
size_t n
)

View File

@@ -1,6 +1,6 @@
/*++
Copyright (c) 2024, Quinn Stephens.
Copyright (c) 2024-2025, Quinn Stephens.
Provided under the BSD 3-Clause license.
Module Name:
@@ -61,7 +61,7 @@ wmemmove (
/* Check for overlap */
if (src > dest || ((wchar_t *)src + count) < (wchar_t *)dest) {
/* Low-to-high copy, use wmemcpy() */
/* Low-to-high copy */
return wmemcpy(dest, src, count);
}

View File

@@ -1,6 +1,6 @@
/*++
Copyright (c) 2024, Quinn Stephens.
Copyright (c) 2024-2025, Quinn Stephens.
Provided under the BSD 3-Clause license.
Module Name:
@@ -50,8 +50,8 @@ wcsnlen (
int
wcscmp (
const wchar_t* s1,
const wchar_t* s2
const wchar_t *s1,
const wchar_t *s2
)
{
@@ -69,8 +69,8 @@ wcscmp (
int
wcsncmp (
const wchar_t* s1,
const wchar_t* s2,
const wchar_t *s1,
const wchar_t *s2,
size_t n
)