1234567891011121314151617181920212223242526272829303132 |
- /*
- * File: error.h
- * Author: Arthur Brandao
- *
- * Created on 8 novembre 2018
- */
- #ifndef ERROR_H
- #define ERROR_H
- /* --- Macro --- */
- #define serror(str) fprintf(stderr, str" : %s\n", serrorlib[serrorno])
- /* --- Constantes Generales --- */
- #define ERR -1
- /* --- Constantes Erreurs --- */
- #define SEBADEND 1
- #define SEBADET 2
- #define SEOPENF 3
- #define SEREDIRTYPE 4
- #define SEBADREDIR 5
- #define SEBADCMD 6
- #define SEWC 7
- #define SEADDWC 8
- /* --- Extern --- */
- extern int serrorno;
- extern char* serrorlib[];
- #endif /* ERROR_H */
|