turn path macros into inline function
commitbf7283465b42e43b8822a8575abd1a7c6c82e7c9
authorRené Scharfe <l.s.r@web.de>
Sat, 16 Aug 2014 21:48:33 +0000 (16 23:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Aug 2014 16:45:39 +0000 (18 09:45 -0700)
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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h