Explorar o código

:art: Amelioration fichier constante

Loquicom %!s(int64=6) %!d(string=hai) anos
pai
achega
370f5215f4
Modificáronse 1 ficheiros con 32 adicións e 0 borrados
  1. 32 0
      constante.h

+ 32 - 0
constante.h

@@ -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 */
+