merge(3p/git): Merge git upstream at v2.26.2
This commit is contained in:
commit
5229c9b232
1006 changed files with 149006 additions and 60819 deletions
10
third_party/git/compat/win32/path-utils.h
vendored
10
third_party/git/compat/win32/path-utils.h
vendored
|
|
@ -1,5 +1,9 @@
|
|||
#define has_dos_drive_prefix(path) \
|
||||
(isalpha(*(path)) && (path)[1] == ':' ? 2 : 0)
|
||||
#ifndef WIN32_PATH_UTILS_H
|
||||
#define WIN32_PATH_UTILS_H
|
||||
|
||||
int win32_has_dos_drive_prefix(const char *path);
|
||||
#define has_dos_drive_prefix win32_has_dos_drive_prefix
|
||||
|
||||
int win32_skip_dos_drive_prefix(char **path);
|
||||
#define skip_dos_drive_prefix win32_skip_dos_drive_prefix
|
||||
static inline int win32_is_dir_sep(int c)
|
||||
|
|
@ -18,3 +22,5 @@ static inline char *win32_find_last_dir_sep(const char *path)
|
|||
#define find_last_dir_sep win32_find_last_dir_sep
|
||||
int win32_offset_1st_component(const char *path);
|
||||
#define offset_1st_component win32_offset_1st_component
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue