diff options
author | glenda <glenda@cirno> | 2022-09-13 18:30:06 +0000 |
---|---|---|
committer | glenda <glenda@cirno> | 2022-09-13 18:30:06 +0000 |
commit | b7e3d0927fe0821e919ccc4a66ef149bddcc20de (patch) | |
tree | 2c6e2e4fa7d31d3443dab3c0799bb6a44f60bcde /error.c | |
parent | 34adf252d179556df7d8277370e735c56c6ab3f5 (diff) |
Switch to rfork instead of libthread
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 |