1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:57:46 +00:00

More compat work towards porting vim.

It now builds and runs in the small-featureset configuration. :^)
This commit is contained in:
Andreas Kling 2019-02-27 00:02:01 +01:00
parent 424368034b
commit e421c10735
8 changed files with 44 additions and 5 deletions

View file

@ -50,12 +50,16 @@ typedef __INTMAX_TYPE__ intmax_t;
#define INT8_MIN (-128)
#define INT16_MIN (-32767-1)
#define INT32_MIN (-2147483647-1)
#define INT64_MIN (-9223372036854775807LL-1LL)
#define INT8_MAX (127)
#define INT16_MAX (32767)
#define INT32_MAX (2147483647)
#define INT64_MAX (9223372036854775807LL)
#define UINT8_MAX (255)
#define UINT16_MAX (65535)
#define UINT32_MAX (4294967295U)
#define UINT64_MAX (18446744073709551615ULL)
#define INT64_C(x) x##LL
#define UINT64_C(x) x##ULL

View file

@ -33,7 +33,7 @@ struct MallocFooter {
uint32_t xorcheck;
};
#define CHUNK_SIZE 16
#define CHUNK_SIZE 32
#define POOL_SIZE 4 * 1048576
static const size_t malloc_budget = POOL_SIZE;
@ -250,6 +250,14 @@ int putenv(char* new_var)
return 0;
}
double strtod(const char* str, char** endptr)
{
(void)str;
(void)endptr;
dbgprintf("LibC: strtod: '%s'\n", str);
assert(false);
}
double atof(const char* str)
{
dbgprintf("LibC: atof: '%s'\n", str);