2 * File automatically generated by
3 * gengen 1.2 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #include "dependant_option.h"
10 dependant_option_gen_class::generate_dependant_option(ostream &stream, unsigned int indent)
12 string indent_str (indent, ' ');
15 stream << "if (args_info->";
16 generate_string (option_var_name, stream, indent + indent_str.length ());
17 stream << "_given && ! args_info->";
18 generate_string (dep_option, stream, indent + indent_str.length ());
25 stream << " fprintf (stderr, \"%s: ";
26 generate_string (option_descr, stream, indent + indent_str.length ());
27 stream << " option depends on option '";
28 generate_string (dep_option_descr, stream, indent + indent_str.length ());
29 stream << "'%s\\n\", ";
30 generate_string (package_var_name, stream, indent + indent_str.length ());
31 stream << ", (additional_error ? additional_error : \"\"));";
34 stream << " error = 1;";