ISPATHSEP and ISTILDE macros; Windows portability
commit31a00d664715fb4c7b90c1617a3b4c2580282d7b
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 11 Sep 2013 01:57:07 +0000 (10 21:57 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 11 Sep 2013 02:31:38 +0000 (10 22:31 -0400)
tree75bc7f494e0357f8b6477a156cd9fa876fe0e644
parent800da1a501bb62c5bb8bf7dbcec696218b7930c2
ISPATHSEP and ISTILDE macros; Windows portability

Windows treats '\\' and '/' equivalently but we cannot control
the form that will be used by end users.  Introduce ISPATHSEP()
macro which tests only for '/' on UNIX and both on Windows.
Introduce ISTILDE() macro to test for '~'.   When testing for
'/' with strchr() or strrchr() add conditional checks for '\\' on
Windows.

Change-Id: Ia85e698fc88f15a6a71db649db5417f02ef7e5fe
lib/krb5/cache.c
lib/krb5/config_file.c
lib/krb5/dcache.c
lib/krb5/keytab.c
lib/krb5/krb5_locl.h
lib/krb5/log.c
lib/krb5/plugin.c
lib/krb5/verify_krb5_conf.c