new type tab_t and rebuild of stack
[calc.git] / program.h
index 8fdca142c58a6085e4ede4503354fa56e7fc05ed..65382d9dca4aaff82f248b52876f31c2272a4aec 100644 (file)
--- a/program.h
+++ b/program.h
@@ -2,6 +2,7 @@
 #define __PROGRAM_H__
 
 #include "element.h"
+#include "tabular.h"
 
 /* global variables */
 
@@ -18,8 +19,7 @@ typedef struct _workspace_t {
     double *argument;
     int argument_size;
     element_t *root;
-    double *stack;
-    int stack_size;
+    tab_t *stack;
     char *string;
 } workspace_t;