| 173 | -------------------------------------------------------------------- */ |
| 174 | |
| 175 | Symbol* write_rhs_function_code(agent* thisAgent, list* args, void* /*user_data*/) |
| 176 | { |
| 177 | Symbol* arg; |
| 178 | char* string; |
| 179 | growable_string gs = make_blank_growable_string(thisAgent); // for XML generation |
| 180 | |
| 181 | for (; args != NIL; args = args->rest) |
| 182 | { |
| 183 | arg = static_cast<symbol_struct*>(args->first); |
| 184 | /* --- Note use of false here--print the symbol itself, not a rereadable |
| 185 | version of it --- */ |
| 186 | string = symbol_to_string(thisAgent, arg, false, NIL, 0); |
| 187 | add_to_growable_string(thisAgent, &gs, string); // for XML generation |
| 188 | print_string(thisAgent, string); |
| 189 | } |
| 190 | |
| 191 | xml_object(thisAgent, kTagRHS_write, kRHS_String, text_of_growable_string(gs)); |
| 192 | |
| 193 | free_growable_string(thisAgent, gs); |
| 194 | |
| 195 | return NIL; |
| 196 | } |
| 197 | |
| 198 | /* -------------------------------------------------------------------- |
| 199 | Crlf |
nothing calls this directly
no test coverage detected