fix printf is a macro in gcc 3
[fw/sdcc] / sim / ucsim / cmd.src / show.cc
index 02ba10b387f09ecb8620c909c1f0516df01c6e5d..99ba73a488275fb26f3062778ac2a53364e07913 100644 (file)
@@ -42,11 +42,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  *----------------------------------------------------------------------------
  */
 
-int
-cl_show_copying_cmd::do_work(class cl_sim *sim,
-                            class cl_cmdline *cmdline, class cl_console *con)
+//int
+//cl_show_copying_cmd::do_work(class cl_sim *sim,
+//                          class cl_cmdline *cmdline, class cl_console *con)
+COMMAND_DO_WORK(cl_show_copying_cmd)
 {
-  con->printf("%s\n", copying);
+  con->dd_printf("%s\n", copying);
   return(DD_FALSE);;
 }
 
@@ -56,11 +57,12 @@ cl_show_copying_cmd::do_work(class cl_sim *sim,
  *----------------------------------------------------------------------------
  */
 
-int
-cl_show_warranty_cmd::do_work(class cl_sim *sim,
-                             class cl_cmdline *cmdline, class cl_console *con)
+//int
+//cl_show_warranty_cmd::do_work(class cl_sim *sim,
+//                           class cl_cmdline *cmdline, class cl_console *con)
+COMMAND_DO_WORK(cl_show_warranty_cmd)
 {
-  con->printf("%s\n", warranty);
+  con->dd_printf("%s\n", warranty);
   return(DD_FALSE);;
 }