Changeset 557:2c8523f9a1c8 for color.c
Legend:
- Unmodified
- Added
- Removed
-
color.c
r545 r557 291 291 char *eptr; 292 292 293 if ( strncasecmp (s, "bright", 6) == 0)293 if (mutt_strncasecmp (s, "bright", 6) == 0) 294 294 { 295 295 *attr |= brite; … … 298 298 299 299 /* allow aliases for xterm color resources */ 300 if ( strncasecmp (s, "color", 5) == 0)300 if (mutt_strncasecmp (s, "color", 5) == 0) 301 301 { 302 302 s += 5; … … 361 361 } 362 362 363 if ( strncmp (buf->data, "index", 5) != 0)363 if (mutt_strncmp (buf->data, "index", 5) != 0) 364 364 { 365 365 snprintf (err->data, err->dsize, … … 392 392 { 393 393 mutt_extract_token (buf, s, 0); 394 if (! strcmp ("*", buf->data))394 if (!mutt_strcmp ("*", buf->data)) 395 395 { 396 396 for (tmp = ColorIndexList; tmp; ) … … 408 408 for (last = NULL, tmp = ColorIndexList; tmp; last = tmp, tmp = tmp->next) 409 409 { 410 if (! strcmp (buf->data, tmp->pattern))410 if (!mutt_strcmp (buf->data, tmp->pattern)) 411 411 { 412 412 if (!do_cache) … … 455 455 if (sensitive) 456 456 { 457 if ( strcmp (s, tmp->pattern) == 0)457 if (mutt_strcmp (s, tmp->pattern) == 0) 458 458 break; 459 459 } 460 460 else 461 461 { 462 if ( strcasecmp (s, tmp->pattern) == 0)462 if (mutt_strcasecmp (s, tmp->pattern) == 0) 463 463 break; 464 464 } … … 541 541 542 542 mutt_extract_token(buf, s, 0); 543 if(! strncmp(buf->data, "quoted", 6))543 if(!mutt_strncmp(buf->data, "quoted", 6)) 544 544 { 545 545 if(buf->data[6]) … … 615 615 mutt_extract_token (buf, s, 0); 616 616 617 if ( strcasecmp ("bold", buf->data) == 0)617 if (mutt_strcasecmp ("bold", buf->data) == 0) 618 618 *attr |= A_BOLD; 619 else if ( strcasecmp ("underline", buf->data) == 0)619 else if (mutt_strcasecmp ("underline", buf->data) == 0) 620 620 *attr |= A_UNDERLINE; 621 else if ( strcasecmp ("none", buf->data) == 0)621 else if (mutt_strcasecmp ("none", buf->data) == 0) 622 622 *attr = A_NORMAL; 623 else if ( strcasecmp ("reverse", buf->data) == 0)623 else if (mutt_strcasecmp ("reverse", buf->data) == 0) 624 624 *attr |= A_REVERSE; 625 else if ( strcasecmp ("standout", buf->data) == 0)625 else if (mutt_strcasecmp ("standout", buf->data) == 0) 626 626 *attr |= A_STANDOUT; 627 else if ( strcasecmp ("normal", buf->data) == 0)627 else if (mutt_strcasecmp ("normal", buf->data) == 0) 628 628 *attr = A_NORMAL; /* needs use = instead of |= to clear other bits */ 629 629 else
