| 1 |
/* |
| 2 |
* Copyright © 2024 Pierre Le Marre |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
#pragma once |
| 6 |
|
| 7 |
#include "config.h" |
| 8 |
|
| 9 |
#include <stdbool.h> |
| 10 |
|
| 11 |
#include "utils.h" |
| 12 |
|
| 13 |
#ifdef _WIN32 |
| 14 |
#define PATH_SEPARATOR '\\' |
| 15 |
#define ALT_PATH_SEPARATOR '/' |
| 16 |
#define is_path_separator(s) \ |
| 17 |
((s) == PATH_SEPARATOR || (s) == ALT_PATH_SEPARATOR) |
| 18 |
#else |
| 19 |
#define PATH_SEPARATOR '/' |
| 20 |
#define is_path_separator(s) ((s) == PATH_SEPARATOR) |
| 21 |
#endif |
| 22 |
|
| 23 |
XKB_EXPORT_PRIVATE bool |
| 24 |
is_absolute_path(const char *path); |