Soft'N'Design Software
/
projects
/
calc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check parenthesis
[calc.git]
/
workspace.c
diff --git
a/workspace.c
b/workspace.c
index 9fc4d83d522795b0bfab4c1e4043527694dd1e5c..eca1bf2bb182178bba5cd3372a3e0dbc9e3f45cc 100644
(file)
--- a/
workspace.c
+++ b/
workspace.c
@@
-1,7
+1,6
@@
#include <malloc.h>
#include <stdio.h>
#include <malloc.h>
#include <stdio.h>
-#include "argument.h"
#include "debug.h"
#include "element.h"
#include "parser.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;
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);
}
if (ws->stack) {
free_tab (ws->stack);
}
@@
-44,11
+39,6
@@
workspace_t *clean_ws (workspace_t *ws)
{
ws->answer = 0;
{
ws->answer = 0;
- if (ws->argument) {
- free_tab (ws->argument);
- ws->argument = NULL;
- }
-
ws->id = 0;
if (ws->root) {
ws->id = 0;
if (ws->root) {
@@
-90,11
+80,6
@@
void restore_ws (workspace_t *ws)
{
answer = ws->answer;
{
answer = ws->answer;
- if (argument) {
- free_tab (argument);
- }
- argument = copy_tab (ws->argument);
-
if (stack) {
free_tab (stack);
}
if (stack) {
free_tab (stack);
}