summaryrefslogtreecommitdiff
path: root/pile.h
diff options
context:
space:
mode:
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