From: borutr Date: Wed, 16 Aug 2006 18:14:24 +0000 (+0000) Subject: code cleaned a little bit too much ;-) X-Git-Url: https://git.gag.com/?p=fw%2Fsdcc;a=commitdiff_plain;h=52561d8c2370014aed7824b653243d3525e67b76 code cleaned a little bit too much ;-) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4340 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/sim/ucsim/cmd.src/newcmd.cc b/sim/ucsim/cmd.src/newcmd.cc index 2ae21942..76e088c4 100644 --- a/sim/ucsim/cmd.src/newcmd.cc +++ b/sim/ucsim/cmd.src/newcmd.cc @@ -917,9 +917,8 @@ cl_commander::prompt(void) */ int -cl_commander::dd_printf(char *format, ...) +cl_commander::dd_printf(char *format, va_list ap) { - va_list ap; int ret= 0; class cl_console *con; @@ -937,13 +936,24 @@ cl_commander::dd_printf(char *format, ...) } if (con) { - va_start(ap, format); ret= con->cmd_do_print(format, ap); - va_end(ap); } return(ret); } +int +cl_commander::dd_printf(char *format, ...) +{ + va_list ap; + int ret= 0; + + va_start(ap, format); + ret= dd_printf(format, ap); + va_end(ap); + + return(ret); +} + /* * Printing to consoles which have CONS_DEBUG flag set */ diff --git a/sim/ucsim/cmd.src/newcmdcl.h b/sim/ucsim/cmd.src/newcmdcl.h index 6655260a..e091fa54 100644 --- a/sim/ucsim/cmd.src/newcmdcl.h +++ b/sim/ucsim/cmd.src/newcmdcl.h @@ -211,10 +211,11 @@ public: void set_fd_set(void); void prompt(void); - int all_printf(char *format, ...); // print to all consoles - int dd_printf(char *format, ...); // print to actual_console - int debug(char *format, ...); // print consoles with debug flag set - int debug(char *format, va_list ap); // print consoles with debug flag set + int all_printf(char *format, ...); // print to all consoles + int dd_printf(char *format, va_list ap); // print to actual_console + int dd_printf(char *format, ...); // print to actual_console + int debug(char *format, ...); // print consoles with debug flag set + int debug(char *format, va_list ap); // print consoles with debug flag set int flag_printf(int iflags, char *format, ...); int input_avail(void); int input_avail_on_frozen(void);