/** \file color.c Functions for printing colored messages. */
/*
- * Mostly taken from the git source tree, version 1.6.1.76, January 2008.
+ * Mostly taken from the git source tree, version 1.6.1.76, January 2009.
*/
#include "para.h"
const char *word = ptr;
int val, len = 0;
- while (word[len] && !isspace(word[len]))
+ while (word[len] && !para_isspace(word[len]))
len++;
ptr = word + len;
- while (*ptr && isspace(*ptr))
+ while (*ptr && para_isspace(*ptr))
ptr++;
val = parse_color(word, len);
}
}
if (bg >= 0) {
- if (sep++)
+ if (sep)
*dst++ = ';';
if (bg < 8) {
*dst++ = '4';