diff options
author | glenda <glenda@9front> | 2022-10-22 16:45:32 +0000 |
---|---|---|
committer | glenda <glenda@9front> | 2022-10-22 16:45:32 +0000 |
commit | a82186dab48c234c507693b166acd7c13433864a (patch) | |
tree | eb6db255c93b1e6278e0e833e915c4c85372c84f /main.c | |
parent | a3b635de1753ed4ce73dabdc7e2c24dfdf77891e (diff) |
Atomic reference counting
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include <libc.h> #include <bio.h> #include <pool.h> +#include <thread.h> #include "apl9.h" @@ -78,7 +79,7 @@ evalline(Rune *line, Biobuf *bio, int toplevel) Datum *result = eval(stmts, toplevel); if(result) - incdatumref(result); + incref(result); Statement *s = stmts; while(s != nil){ |