00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef DAR_SUITE_HPP
00026 #define DAR_SUITE_HPP
00027
00028 #include "../my_config.h"
00029 #include "user_interaction.hpp"
00030
00031 #define EXIT_OK 0 // all that was asked is done
00032 #define EXIT_SYNTAX 1 // syntax error on command line
00033 #define EXIT_ERROR 2 // error not related to the data treated
00034
00035 #define EXIT_BUG 3 // detected a condition that should never happen
00036 #define EXIT_USER_ABORT 4 // user asked to abort (or question in non
00037
00038 #define EXIT_DATA_ERROR 5 // error in data treated (could not save/restore/
00039
00040
00041 #define EXIT_SCRIPT_ERROR 6 // error around the execution of a user command
00042
00043 #define EXIT_LIBDAR 7 // error calling libdar. Arguments given to libdar
00044
00045 #define EXIT_LIMITINT 8 // limitinit overflow
00046
00047 #define EXIT_UNKNOWN_ERROR 9
00048
00049 #define EXIT_COMPILATION 10 // feature not activated at compilation time
00050 #define EXIT_SAVED_MODIFIED 11 // some files have been modified at the time they were saved
00051
00052 #define EXTENSION "dar"
00053
00055 #ifndef __VERSION__
00056 #define __VERSION__ "unknown"
00057 #endif
00058
00060 #ifdef __GNUC__
00061 #define CC_NAT "GNUC"
00062 #else
00063 #define CC_NAT "unknown"
00064 #endif
00065
00066 using namespace libdar;
00067
00068 extern void dar_suite_reset_signal_handler();
00069 extern int dar_suite_global(int argc, char *argv[], const char **env, int (*call)(user_interaction & dialog, int, char *[], const char **env));
00070
00071 extern std::string dar_suite_command_line_features();
00072
00073 #endif