* src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes appended by...
[fw/sdcc] / debugger / mcs51 / sdcdb.c
index 1c0344375535eca34a265edd0abced4f53410cd1..507ad1bfc7b7337b8b598f32a0b230b663de1649 100644 (file)
@@ -52,7 +52,7 @@ short showfull = 0;
 char userinterrupt = 0;
 char nointerrupt = 0;
 char contsim = 0;
-char *ssdirl = DATADIR LIB_DIR_SUFFIX ":" DATADIR LIB_DIR_SUFFIX "/small" ;
+char *ssdirl = DATADIR LIB_DIR_SUFFIX ":" DATADIR LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "small" ;
 char *simArgs[40];
 int nsimArgs = 0;
 char model_str[20];
@@ -977,12 +977,12 @@ int completionHelper_GetTokenNumber(int toknum, int *start, int *end)
     {
         // start = skip blanks from end
         *start = *end;
-        while (p[*start] && isblank( p[*start] ))
+        while (p[*start] && isspace( p[*start] ))
             (*start)++;
 
         // end = skip non-blanks from start
         *end = *start;
-        while (p[*end] && !isblank( p[*end] ))
+        while (p[*end] && !isspace( p[*end] ))
             (*end)++;
 
         if (tok_index == toknum)
@@ -1051,14 +1051,14 @@ char *completionCommandsList(const char *text, int state)
         char *p = rl_line_buffer;
 
         // skip blanks
-        while (p && isblank(*p))
+        while (p && isspace(*p))
         {
             if (p-rl_line_buffer == rl_point)
                 ok = 1;
             p++;
         }
 
-        while (p && !isblank(*p))
+        while (p && !isspace(*p))
         {
             if (p-rl_line_buffer == rl_point)
                 ok = 1;