summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorglenda <glenda@cirno>2022-09-13 18:30:06 +0000
committerglenda <glenda@cirno>2022-09-13 18:30:06 +0000
commitb7e3d0927fe0821e919ccc4a66ef149bddcc20de (patch)
tree2c6e2e4fa7d31d3443dab3c0799bb6a44f60bcde /error.c
parent34adf252d179556df7d8277370e735c56c6ab3f5 (diff)
Switch to rfork instead of libthread
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/error.c b/error.c
index 5b7f386..4d04696 100644
--- a/error.c
+++ b/error.c
@@ -1,6 +1,5 @@
#include <u.h>
#include <libc.h>
-#include <thread.h>
#include <bio.h>
#include "apl9.h"
@@ -78,14 +77,11 @@ void
displayerror(void)
{
ThreadData *td = getthreaddata();
- int tmp = td->requiredstack;
- td->requiredstack = 0;
Array *error = allocarray(AtypeArray, 1, 3);
error->shape[0] = 3;
error->arraydata[0] = mkrunearray(errorstr(td->lasterror));
error->arraydata[1] = mkrunearray(td->lasterrormsg ? td->lasterrormsg : L"");
error->arraydata[2] = fnSame(td->name);
rundfn(L"0::⎕RAWIO←⍵ ⋄ ('!' ⍵) ⍈ ⎕SESSION", nil, nil, nil, error);
- td->requiredstack = tmp;
freearray(error);
} \ No newline at end of file