X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=program.h;h=d830b7f1f57ce46d0b8e8e18d4ec3d74f5cbe13f;hb=c91672f948d371d3ba2b1a47db9a31fcabb763f5;hp=65382d9dca4aaff82f248b52876f31c2272a4aec;hpb=16a13cbfff44a996b8355cab6fdfee3fae75458d;p=calc.git diff --git a/program.h b/program.h index 65382d9..d830b7f 100644 --- a/program.h +++ b/program.h @@ -6,20 +6,15 @@ /* 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; tab_t *stack; + tab_t *storage; char *string; } workspace_t; @@ -29,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);