29 #ifndef MACRO_TOOLS_HPP
30 #define MACRO_TOOLS_HPP
32 #include "../my_config.h"
57 #define BUFFER_SIZE 102400
59 #if SSIZE_MAX < BUFFER_SIZE
61 #define BUFFER_SIZE SSIZE_MAX
68 extern const archive_version macro_tools_supported_version;
69 extern const std::string LIBDAR_STACK_LABEL_UNCOMPRESSED;
70 extern const std::string LIBDAR_STACK_LABEL_CLEAR;
71 extern const std::string LIBDAR_STACK_LABEL_UNCYPHERED;
72 extern const std::string LIBDAR_STACK_LABEL_LEVEL1;
74 extern void macro_tools_open_archive(user_interaction & dialog,
75 const path &sauv_path,
76 const std::string &basename,
77 const infinint & min_digits,
78 const std::string &extension,
80 const secu_string &pass,
84 const std::string &input_pipe,
85 const std::string &output_pipe,
86 const std::string & execute,
87 infinint & second_terminateur_offset,
93 extern catalogue *macro_tools_get_derivated_catalogue_from(user_interaction & dialog,
96 const header_version & ver,
99 const infinint & second_terminateur_offset,
102 extern catalogue *macro_tools_get_catalogue_from(user_interaction & dialog,
104 const header_version & ver,
107 const infinint & second_terminateur_offset,
110 extern catalogue *macro_tools_lax_search_catalogue(user_interaction & dialog,
112 const archive_version & edition,
115 bool even_partial_catalogues,
116 const label & layer1_data_name);
120 extern infinint macro_tools_get_terminator_start(generic_file & f,
const archive_version & reading_ver);