| 124 | } |
| 125 | |
| 126 | void print_rl_rules(agent* thisAgent, bool intern, bool print_filename, bool full_prod) |
| 127 | { |
| 128 | assert(thisAgent); |
| 129 | |
| 130 | for (production* prod = thisAgent->all_productions_of_type[ DEFAULT_PRODUCTION_TYPE ]; prod != NIL; prod = prod->next) |
| 131 | { |
| 132 | if (prod->rl_rule) |
| 133 | { |
| 134 | do_print_for_production(thisAgent, prod, intern, print_filename, full_prod); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | for (production* prod = thisAgent->all_productions_of_type[ USER_PRODUCTION_TYPE ]; prod != NIL; prod = prod->next) |
| 139 | { |
| 140 | if (prod->rl_rule) |
| 141 | { |
| 142 | do_print_for_production(thisAgent, prod, intern, print_filename, full_prod); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | for (production* prod = thisAgent->all_productions_of_type[ CHUNK_PRODUCTION_TYPE ]; prod != NIL; prod = prod->next) |
| 147 | { |
| 148 | if (prod->rl_rule) |
| 149 | { |
| 150 | do_print_for_production(thisAgent, prod, intern, print_filename, full_prod); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | // compare_attr is used for cstdlib::qsort below. |
| 156 | int compare_attr(const void* e1, const void* e2) |
no test coverage detected