#define __PROGRAM_H__
#include "element.h"
+#include "tabular.h"
/* global variables */
-extern int argument_size;
-extern double *argument;
-
/* workspace type */
typedef struct _workspace_t {
- int id;
double answer;
- double *storage;
- int storage_size;
- double *argument;
- int argument_size;
+ tab_t *argument;
+ int id;
element_t *root;
- double *stack;
- int stack_size;
+ tab_t *stack;
+ tab_t *storage;
char *string;
} workspace_t;
/* program function */
void prog (int id, element_t *root);
-double arg (int id);
double call (int id, int nbargs, element_t **args);
void list ();
void edit (int id);