correct push
[calc.git] / program.h
index 3d459d631c318aeac1ed05311aa5d5e2916f37a3..d830b7f1f57ce46d0b8e8e18d4ec3d74f5cbe13f 100644 (file)
--- a/program.h
+++ b/program.h
@@ -6,19 +6,15 @@
 
 /* global variables */
 
-extern int argument_size;
-extern double *argument;
-
 /* workspace type */
 
 typedef struct _workspace_t {
-    int id;
     double answer;
-    tab_t *storage;
-    double *argument;
-    int argument_size;
+    tab_t *argument;
+    int id;
     element_t *root;
     tab_t *stack;
+    tab_t *storage;
     char *string;
 } workspace_t;
 
@@ -28,7 +24,6 @@ extern int nb_programs;
 /* 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);