Fix stack memory, undefined behavior, etc.

This commit is contained in:
Justine Tunney 2023-08-15 19:09:35 -07:00
parent 110559ce6a
commit 507d7a0b0b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 41 additions and 186 deletions

View file

@ -74,11 +74,11 @@
#define __BIGGEST_ALIGNMENT__ 16
#endif
#define APE_STACKSIZE 8388608 /* default 8mb stack */
#define APE_PAGESIZE 0x10000 /* i386+ */
#define APE_STACKSIZE 8388608
#define APE_PAGESIZE 65536
#ifdef _COSMO_SOURCE
#define FRAMESIZE 0x10000
#define _PAGESIZE 0x1000 /* i386+ */
#define FRAMESIZE 65536
#define _PAGESIZE 4096
#endif
#define BUFSIZ 0x1000 /* best stdio default */