diff options
author | glenda <glenda@cirno> | 2022-09-11 09:42:42 +0000 |
---|---|---|
committer | glenda <glenda@cirno> | 2022-09-11 09:42:42 +0000 |
commit | e59277504e7b7441729a2c6a097c72eb4142704d (patch) | |
tree | fd84f5e3ce42027efbf2cccbf1a5dd67595c3ca4 /main.c | |
parent | 759d2d541d943fe95138789477fa6faddf6e3e08 (diff) |
Better handling of shy results in the session
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -50,14 +50,8 @@ restart: while(!off){ checkmem("main loop"); Datum *result = evalline(nil, stdin, 1); - if(result && !result->shy) + if(result) outputmain(result); - else{ - Datum *dummy = allocdatum(ArrayTag, 0); - dummy->array = mkrunearray(L""); - outputmain(dummy); - freedatum(dummy); - } freedatum(result); /* print("Unfreed arrays: %d\n", arrayalloccounts); |