comparison lib-src/ellcc.c @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
357 while (*str) 357 while (*str)
358 { 358 {
359 switch (sm) 359 switch (sm)
360 { 360 {
361 case 0: /* Start of case - string leading whitespace */ 361 case 0: /* Start of case - string leading whitespace */
362 if (isspace (*str)) 362 if (isspace ((unsigned char) *str))
363 str++; 363 str++;
364 else 364 else
365 { 365 {
366 sm = 1; /* Change state to non-whitespace */ 366 sm = 1; /* Change state to non-whitespace */
367 s = str; /* Mark the start of THIS argument */ 367 s = str; /* Mark the start of THIS argument */
368 } 368 }
369 break; 369 break;
370 370
371 case 1: /* Non-whitespace character. Mark the start */ 371 case 1: /* Non-whitespace character. Mark the start */
372 if (isspace (*str)) 372 if (isspace ((unsigned char) *str))
373 { 373 {
374 /* Reached the end of the argument. Add it. */ 374 /* Reached the end of the argument. Add it. */
375 int l = str-s; 375 int l = str-s;
376 exec_argv[real_argc] = xnew (l+2, char); 376 exec_argv[real_argc] = xnew (l+2, char);
377 strncpy (exec_argv[real_argc], s, l); 377 strncpy (exec_argv[real_argc], s, l);