- bx_list_c::text_print() now uses a comma and a space as the parameter separator

if the flag SERIES_ASK is set
- bx_param_enum_c::text_print(): use the value already stored in variable 'choice'
This commit is contained in:
Volker Ruppert 2003-08-31 08:34:29 +00:00
parent dc5fe76ecc
commit a0bb1e0b5c

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: textconfig.cc,v 1.15 2003-08-25 18:36:09 vruppert Exp $
// $Id: textconfig.cc,v 1.16 2003-08-31 08:34:29 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// This is code for a text-mode configuration interfac. Note that this file
@ -749,7 +749,7 @@ bx_param_enum_c::text_print (FILE *fp)
fprintf (fp, get_format (), choice);
} else {
char *format = "%s: %s";
fprintf (fp, format, get_name (), get_choice (get ()));
fprintf (fp, format, get_name (), choice);
}
}
@ -797,6 +797,8 @@ bx_list_c::text_print (FILE *fp)
//fprintf (fp, "param[%d] = %p\n", i, list[i]);
assert (list[i] != NULL);
if (list[i]->get_enabled ()) {
if ((i>0) && (options->get () & SERIES_ASK))
fprintf (fp, ", ");
list[i]->text_print (fp);
if (!(options->get () & SERIES_ASK))
fprintf (fp, "\n");