26 #ifndef MACRO_TOOLS_HPP
27 #define MACRO_TOOLS_HPP
29 #include "../my_config.h"
54 #define BUFFER_SIZE 102400
56 #if SSIZE_MAX < BUFFER_SIZE
58 #define BUFFER_SIZE SSIZE_MAX
65 extern const archive_version macro_tools_supported_version;
66 extern const std::string LIBDAR_STACK_LABEL_UNCOMPRESSED;
67 extern const std::string LIBDAR_STACK_LABEL_CLEAR;
68 extern const std::string LIBDAR_STACK_LABEL_UNCYPHERED;
69 extern const std::string LIBDAR_STACK_LABEL_LEVEL1;
71 extern void macro_tools_open_archive(user_interaction & dialog,
72 const path &sauv_path,
73 const std::string &basename,
74 const infinint & min_digits,
75 const std::string &extension,
77 const secu_string &pass,
81 const std::string &input_pipe,
82 const std::string &output_pipe,
83 const std::string & execute,
84 infinint & second_terminateur_offset,
90 extern catalogue *macro_tools_get_derivated_catalogue_from(user_interaction & dialog,
93 const header_version & ver,
96 const infinint & second_terminateur_offset,
99 extern catalogue *macro_tools_get_catalogue_from(user_interaction & dialog,
101 const header_version & ver,
104 const infinint & second_terminateur_offset,
107 extern catalogue *macro_tools_lax_search_catalogue(user_interaction & dialog,
109 const archive_version & edition,
112 bool even_partial_catalogues,
113 const label & layer1_data_name);
117 extern infinint macro_tools_get_terminator_start(generic_file & f,
const archive_version & reading_ver);