]> git.gag.com Git - fw/sdcc/blobdiff - sim/ucsim/s51.src/cmd51.cc
version 0.2.39: fix of arith insts and start of re-structure
[fw/sdcc] / sim / ucsim / s51.src / cmd51.cc
index b79d99839bf4d273d2c966e6f502c95e3c2780c7..8bc9bdbac5b49e93593c4d2f3183e7daea5387b8 100644 (file)
@@ -72,7 +72,7 @@ cl_51cons::interpret(char *cmd)
 {
   int i;
   char *c, *s;
-  bool repeat= FALSE, retval= FALSE;
+  bool repeat= DD_FALSE, retval= DD_FALSE;
   
   if (*cmd)
     {
@@ -83,11 +83,11 @@ cl_51cons::interpret(char *cmd)
     }
   else
     if (last_command == NULL)
-      return(FALSE);
+      return(DD_FALSE);
     else
       {
        c= strdup(last_command);
-       repeat= TRUE;
+       repeat= DD_TRUE;
       }
   i= 0;
   s= strtok(c, delimiters);
@@ -97,7 +97,7 @@ cl_51cons::interpret(char *cmd)
     i++;
   if (cmd_table[i].name == NULL)
     {
-      fprintf(sim->cmd_out(), "Unknown command.\n");
+      sim->cmd->printf("Unknown command.\n");
       if (last_command)
        {
          free(last_command);
@@ -124,7 +124,7 @@ cl_51cons::old_command(class cl_cmdline *cmdline)
   if (cmdline->name == 0 ||
       *(cmdline->name) == '\0' ||
       *(cmdline->name) == '\n')
-    return(TRUE);
+    return(DD_TRUE);
   while ((cmd_table[i].name != NULL) &&
         /*(strstr(c, cmd_table[i].name) != c)*/
         (strcmp(cmdline->name, cmd_table[i].name) != 0))