summaryrefslogtreecommitdiff
path: root/pile.h
diff options
context:
space:
mode:
authorbiouman <biouman>2001-04-27 04:12:25 +0000
committerbiouman <biouman>2001-04-27 04:12:25 +0000
commit4db12b8121c0b32df8b8671045013c857beb191f (patch)
tree15489f56132610576bd5cd860d38d8b759f64482 /pile.h
Diffstat (limited to 'pile.h')
-rw-r--r--pile.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/pile.h b/pile.h
new file mode 100644
index 0000000..02ad149
--- /dev/null
+++ b/pile.h
@@ -0,0 +1,36 @@
+#ifndef __PILE_H__
+#define __PILE_H__
+#include "polynom.h"
+
+#define PILE_MAX 100
+
+typedef enum type_elem {
+ T_POLY,
+ T_STRING,
+ T_INT
+} type_elem;
+
+typedef struct pile_elem {
+ type_elem type;
+ polynome poly;
+ char *label;
+ int val;
+} pile_elem;
+
+void push_pile(char *st);
+
+void push_pile_poly(polynome poly);
+
+void push_pile_int(int val);
+
+void push_pile_string(char *st);
+
+pile_elem pop_pile(unsigned int count);
+
+char *affichage_level_1(void);
+
+int is_mute(char *st);
+
+void act_pile(int func);
+
+#endif