Allow to change the output format

The new test option allows to restore the past
behaviour, just in case...
This commit is contained in:
Andrea Mazzoleni 2016-10-11 20:30:12 +02:00
parent 97c01d35f4
commit faa530e83e
7 changed files with 102 additions and 17 deletions

View file

@ -186,7 +186,6 @@ void msg_verbose(const char* format, ...) __attribute__((format(attribute_printf
*/
void msg_flush(void);
/****************************************************************************/
/* print */
@ -229,7 +228,11 @@ const char* esc_tag(const char* str, char* buffer);
*
* \param buffer Preallocated buffer of ESC_MAX size.
*/
const char* esc_shell(const char* str, char* buffer);
const char* esc_shell_multi(const char** str_map, unsigned str_max, char* buffer);
static inline const char* esc_shell(const char* str, char* buffer)
{
return esc_shell_multi(&str, 1, buffer);
}
/**
* Polish a string.