if (lexptr == NULL)
return;
fprintf (stderr, "context: ");
- for (p = lexptr - 1; (p > lexbuf) && (isspace (*p) == FALSE); p--)
+ for (p = lexptr - 1; (p > lexbuf) && !isspace(*p); p--)
;
for (q = lexbuf; q < p; q++)
fputc (*q, stderr);
#include <search.h>
#endif
#include <ctype.h>
-#ifndef FALSE
-#define FALSE (0)
-#endif
-#ifndef TRUE
-#define TRUE (!FALSE)
-#endif
-#ifndef NOT
-#define NOT(x) (!(x))
-#endif
-#ifndef NIL
-#define NIL(type) ((type)0)
-#endif
typedef struct hsbcolor_t {
char *name;
unsigned char h, s, b;
unsigned char c;
unsigned char *p = out;
while ((c = *(unsigned char *) orig++)) {
- if (isalnum(c) == FALSE)
+ if (!isalnum(c))
continue;
if (isupper(c))
c = tolower(c);
sizeof(fake), colorcmpf);
}
if (last == NULL) {
- if (isdigit(canon[0]) == FALSE) {
+ if (!isdigit(canon[0])) {
fprintf(stderr, "warning: %s is not a known color\n", str);
strcpy(buf, str);
} else
unsigned char *str = (unsigned char *) sstr;
while (*str)
- if (NOT(isdigit(*str++)))
+ if (!isdigit(*str++))
return FALSE;
return TRUE;
}
unsigned char *s;
for (s = (unsigned char *) (lp->text); *s; s++) {
- if (isspace(*s) == FALSE)
+ if (!isspace(*s))
break;
}
if (*s == 0)