|
@@ -0,0 +1,32 @@
|
|
|
+/*
|
|
|
+ * File: constante.h
|
|
|
+ * Author: Arthur Brandao
|
|
|
+ *
|
|
|
+ * Created on 31 octobre 2018
|
|
|
+ */
|
|
|
+
|
|
|
+#ifndef CONSTANTE_H
|
|
|
+#define CONSTANTE_H
|
|
|
+
|
|
|
+/* --- General --- */
|
|
|
+#define SHELL_ERR -1
|
|
|
+#define SHELL_FAIL 0
|
|
|
+#define SHELL_OK 1
|
|
|
+
|
|
|
+/* --- Separateur commande --- */
|
|
|
+#define SHELL_END 0 //Aucune autre commande après
|
|
|
+#define SHELL_NONE 1 //Aucun lien entre les 2 commandes
|
|
|
+#define SHELL_IF 2 //La commande suivante s'execute si l'actuel reussis
|
|
|
+#define SHELL_ELSE 3 //La commande suivante s'execute si l'actuel échou
|
|
|
+#define SHELL_PIPE 4 //Envoi des données de sorties vers la commande suivante
|
|
|
+
|
|
|
+/* --- Boolean --- */
|
|
|
+#define boolean int
|
|
|
+#define true 1
|
|
|
+#define false 0
|
|
|
+
|
|
|
+/* --- Null --- */
|
|
|
+#define null NULL
|
|
|
+
|
|
|
+#endif /* CONSTANTE_H */
|
|
|
+
|