[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:
@@ -9,14 +9,14 @@ Module Name:
Abstract:
Provides variable arguments definitions.
Provides variable argument list definitions.
--*/
#pragma once
#ifndef _STDARG_H
#define _STDARG_H
#define _STDARG_H 1
#ifdef __cplusplus
extern "C" {

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:
@@ -16,14 +16,16 @@ Abstract:
#pragma once
#ifndef _STDDEF_H
#define _STDDEF_H
#define _STDDEF_H 1
#ifdef __cplusplus
extern "C" {
#endif
#ifndef NULL
#ifdef __cplusplus
#if defined(__cplusplus) && __cplusplus >= 201103L
#define NULL nullptr
#elif defined(__cplusplus)
#define NULL 0
#else
#define NULL ((void*)0)

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:
@@ -16,7 +16,7 @@ Abstract:
#pragma once
#ifndef _STRING_H
#define _STRING_H
#define _STRING_H 1
#include <stddef.h>
@@ -30,8 +30,8 @@ void *memmove(void *dest, const void *src, size_t count);
size_t strlen(const char *str);
size_t strnlen(const char *str, size_t maxlen);
int strcmp(const char* s1, const char* s2);
int strncmp(const char* s1, const char* s2, size_t n);
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, size_t n);
char *strchr(const char *s, int c);
char *strstr(const char *haystack, const char *needle);

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:
@@ -16,7 +16,7 @@ Abstract:
#pragma once
#ifndef _WCHAR_H
#define _WCHAR_H
#define _WCHAR_H 1
#include <stdarg.h>
#include <stddef.h>
@@ -31,8 +31,8 @@ wchar_t *wmemmove(wchar_t *dest, const wchar_t *src, size_t count);
size_t wcslen(const wchar_t *str);
size_t wcsnlen(const wchar_t *str, size_t maxlen);
int wcscmp(const wchar_t* s1, const wchar_t* s2);
int wcsncmp(const wchar_t* s1, const wchar_t* s2, size_t n);
int wcscmp(const wchar_t *s1, const wchar_t *s2);
int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n);
wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle);
wchar_t *wcscpy_s(wchar_t *dest, size_t maxlen, const wchar_t *src);