Add project files (part 1/2)

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
tonihaxandClaude Sonnet 5 committed 2026-11-05 19:45:34 +01:00
1 parent 3721eaecb2
commit 73baf8d02d
274 files changed
+83593

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
#pragma once
#define assert(x) ((void)0)
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
double sin(double); double cos(double); double tan(double); double acos(double); double asin(double); double atan(double);
double atan2(double, double); double sqrt(double); double pow(double, double); double fabs(double); double floor(double);
double ceil(double); double fmod(double, double); double log(double); double exp(double); double ldexp(double, int);
float sinf(float); float cosf(float); float tanf(float); float acosf(float); float atan2f(float, float); float sqrtf(float);
float expf(float); float powf(float, float); float fabsf(float); float floorf(float); float ceilf(float); float fmodf(float, float);
#ifdef __cplusplus
}
#endif
+2
View File
@@ -0,0 +1,2 @@
#pragma once
#include <string.h>
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <stddef.h>
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _iobuf FILE;
FILE *fopen(const char *, const char *);
int fclose(FILE *);
size_t fread(void *, size_t, size_t, FILE *);
int fseek(FILE *, long, int);
int feof(FILE *);
int fopen_s(FILE **, const char *, const char *);
long ftell(FILE *);
int sprintf(char *, const char *, ...);
int snprintf(char *, size_t, const char *, ...);
// diagnostics printing of the bundled libraries is not wanted in the client
#define printf(...) ((void)0)
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#ifdef __cplusplus
}
#endif
+17
View File
@@ -0,0 +1,17 @@
// Declarations of the UCRT functions the bundled C libraries (NanoVG, stb) use; the cross build has no Windows SDK.
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
void *malloc(size_t);
void *calloc(size_t, size_t);
void *realloc(void *, size_t);
void free(void *);
void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
int abs(int);
double strtod(const char *, char **);
long strtol(const char *, char **, int);
#ifdef __cplusplus
}
#endif
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
void *memcpy(void *, const void *, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
int memcmp(const void *, const void *, size_t);
size_t strlen(const char *);
int strcmp(const char *, const char *);
int strncmp(const char *, const char *, size_t);
char *strcpy(char *, const char *);
char *strncpy(char *, const char *, size_t);
char *strchr(const char *, int);
#ifdef __cplusplus
}
#endif