check parenthesis
[calc.git] / program.h
index d830b7f1f57ce46d0b8e8e18d4ec3d74f5cbe13f..f3f5369981795ba5e49c87e607c960c92d2a44d8 100644 (file)
--- a/program.h
+++ b/program.h
@@ -3,22 +3,11 @@
 
 #include "element.h"
 #include "tabular.h"
+#include "workspace.h"
 
 /* global variables */
 
-/* workspace type */
-
-typedef struct _workspace_t {
-    double answer;
-    tab_t *argument;
-    int id;
-    element_t *root;
-    tab_t *stack;
-    tab_t *storage;
-    char *string;
-} workspace_t;
-
-extern workspace_t *programs;
+extern workspace_t **programs;
 extern int nb_programs;
 
 /* program function */