mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-31 18:44:48 +01:00
9ea2a99edb
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15071 a95241bf-73f2-0310-859d-f6bbb57e9c96
13 lines
434 B
C
13 lines
434 B
C
extern int cistrncmp();
|
|
extern char *rfc822ize();
|
|
|
|
extern char casemap[];
|
|
|
|
/* must call cistrncmp before invoking TOLOW... */
|
|
#define TOLOW(c) (casemap[(c)+128]) /* see case.c for why 128 */
|
|
|
|
/* ...but the use of it in CISTREQN is safe without the preliminary call (!) */
|
|
/* CISTREQN is an optimised case-insensitive strncmp(a,b,n)==0; n > 0 */
|
|
#define CISTREQN(a, b, n) \
|
|
(TOLOW((a)[0]) == TOLOW((b)[0]) && cistrncmp(a, b, n) == 0)
|