diff options
Diffstat (limited to 'apl9.h')
-rw-r--r-- | apl9.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2,6 +2,9 @@ #define MAX_LINE_LENGTH 1024 #define MAX_LINE_TOKENS 1024 +#define STACKSIZE (1024*1024) /* 1 MB */ +#define REQUIREDSTACK (16*1024) /* 16 KB */ + typedef enum { ArrayTag, @@ -53,6 +56,7 @@ typedef enum EValue = 6, EDomain = 11, ETimeout = 12, /* not in dyalog */ + EStack = 13, /* C stack overflow */ ENotImplemented = 100, /* not in dyalog */ } errorCodes; @@ -233,6 +237,7 @@ struct DfnFrame struct ThreadData { int id; + int requiredstack; DfnFrame *currentdfn; Mail *mail; Mail *lastmail; @@ -350,6 +355,9 @@ void messagesend(Array *, int); Array *messagerecv(Function, int); Array *runningtasks(void); Array *taskproperty(vlong, vlong); +int stackused(void); +int hasstack(int); +void checkstack(void); /* Monadic functions from function.c */ Array *fnNegate(Array *); |