turn path macros into inline function
authorRené Scharfe <redacted>
Sat, 16 Aug 2014 21:48:33 +0000 (23:48 +0200)
committerJunio C Hamano <redacted>
Mon, 18 Aug 2014 16:45:39 +0000 (09:45 -0700)
commitbf7283465b42e43b8822a8575abd1a7c6c82e7c9
tree8902206a26d80f529a7f1ece7b7f49565be302b6
parentc2369bdf7ff082d588c4a4efe280bc4a483d0192
turn path macros into inline function

Use static inline functions instead of macros for has_dos_drive_prefix,
offset_1st_component, is_dir_sep and find_last_dir_sep in order to let
the compiler do type checking.

The definitions of offset_1st_component and is_dir_sep are switched
around because the former uses the latter.

Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-compat-util.h
git clone https://git.99rst.org/PROJECT