2006-09-28 21:36:55 +02:00
|
|
|
#ifndef _COMPAT_H_
|
|
|
|
#define _COMPAT_H_
|
|
|
|
|
2006-09-28 21:53:17 +02:00
|
|
|
/* Note this isn't identical to a C locale isspace() without \f and
|
|
|
|
\v, but works for the purposes used here. */
|
|
|
|
#define ascii_isspace(a) ((a)==' ' || (a)=='\n' || (a)=='\r' || (a)=='\t')
|
|
|
|
|
2006-09-28 21:36:55 +02:00
|
|
|
int hextobyte( const char *s );
|
2007-04-17 00:32:28 +02:00
|
|
|
int ascii_toupper (int c);
|
|
|
|
int ascii_tolower (int c);
|
|
|
|
int ascii_strcasecmp( const char *a, const char *b );
|
|
|
|
int ascii_strncasecmp( const char *a, const char *b, size_t n);
|
2006-09-28 21:36:55 +02:00
|
|
|
|
2006-09-28 21:53:17 +02:00
|
|
|
#ifndef HAVE_STRSEP
|
|
|
|
char *strsep (char **stringp, const char *delim);
|
|
|
|
#endif
|
|
|
|
|
2006-09-28 21:36:55 +02:00
|
|
|
#endif /* !_COMPAT_H_ */
|