X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=workspace.c;h=eca1bf2bb182178bba5cd3372a3e0dbc9e3f45cc;hb=e2a309f921968691af1566000dd694f191eca857;hp=9fc4d83d522795b0bfab4c1e4043527694dd1e5c;hpb=a3f2e6cf008678cfa2b1a868e38fefbe81009971;p=calc.git diff --git a/workspace.c b/workspace.c index 9fc4d83..eca1bf2 100644 --- a/workspace.c +++ b/workspace.c @@ -1,7 +1,6 @@ #include #include -#include "argument.h" #include "debug.h" #include "element.h" #include "parser.h" @@ -23,10 +22,6 @@ workspace_t *alloc_ws () workspace_t *backup_ws (workspace_t *ws) { ws->answer = answer; - if (ws->argument) { - free_tab (ws->argument); - } - ws->argument = copy_tab (argument); if (ws->stack) { free_tab (ws->stack); } @@ -44,11 +39,6 @@ workspace_t *clean_ws (workspace_t *ws) { ws->answer = 0; - if (ws->argument) { - free_tab (ws->argument); - ws->argument = NULL; - } - ws->id = 0; if (ws->root) { @@ -90,11 +80,6 @@ void restore_ws (workspace_t *ws) { answer = ws->answer; - if (argument) { - free_tab (argument); - } - argument = copy_tab (ws->argument); - if (stack) { free_tab (stack); }