Initial commit of current C compiler sources, partly rebranded but not yet properly cleaned up!

This commit is contained in:
2025-06-04 03:45:05 +10:00
parent 6e217b2669
commit 7f74463109
33 changed files with 18135 additions and 0 deletions

26
fakelibc/stdlib.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef _FAKELIBC_STDLIB_H
#define _FAKELIBC_STDLIB_H
//typedef long size_t;
#include <stddef.h>
void* malloc(long sz);
void* calloc(long n, long sz);
void* realloc(void* mem, long sz);
void free(void* mem);
char* getenv(const char* name);
void exit(int x);
long strtol(const char* str, char**endvar, int base);
long long strtoll(const char* str, char**endvar, int base);
unsigned long strtoul(const char* str, char**endvar, int base);
unsigned long long strtoull(const char* str, char**endvar, int base);
float strtof(const char* str, char**endvar);
double strtod(const char* str, char**endvar);
double atof(const char* str);
int atoi(const char* str);
/* From ifndef at top of file: */
#endif