2 * File automatically generated by
3 * gengen 1.4.1 by Lorenzo Bettini
4 * http://www.gnu.org/software/gengen
7 #include "check_modes.h"
10 check_modes_gen_class::generate_check_modes(ostream &stream, unsigned int indent)
12 string indent_str (indent, ' ');
15 stream << "if (args_info->";
16 generate_string (mode1_name, stream, indent + indent_str.length ());
17 stream << "_mode_counter && args_info->";
18 generate_string (mode2_name, stream, indent + indent_str.length ());
19 stream << "_mode_counter) {";
23 generate_string (mode1_name, stream, indent + indent_str.length ());
24 stream << "_given[] = {";
25 generate_string (mode1_given_fields, stream, indent + indent_str.length ());
29 stream << " const char *";
30 generate_string (mode1_name, stream, indent + indent_str.length ());
31 stream << "_desc[] = {";
32 generate_string (mode1_options, stream, indent + indent_str.length ());
37 generate_string (mode2_name, stream, indent + indent_str.length ());
38 stream << "_given[] = {";
39 generate_string (mode2_given_fields, stream, indent + indent_str.length ());
43 stream << " const char *";
44 generate_string (mode2_name, stream, indent + indent_str.length ());
45 stream << "_desc[] = {";
46 generate_string (mode2_options, stream, indent + indent_str.length ());
50 stream << " error += check_modes(";
51 generate_string (mode1_name, stream, indent + indent_str.length ());
53 generate_string (mode1_name, stream, indent + indent_str.length ());
55 generate_string (mode2_name, stream, indent + indent_str.length ());
57 generate_string (mode2_name, stream, indent + indent_str.length ());