Edit

kc3-lang/libxkbcommon/src/utils-paths.h

Branch :

  • Show log

    Commit

  • Author : Ran Benita
    Date : 2025-01-29 15:35:22
    Hash : e120807b
    Message : Update license notices to SDPX short identifiers + update LICENSE Fix #628. Signed-off-by: Ran Benita <ran@unusedvar.com>

  • src/utils-paths.h
  • /*
     * Copyright © 2024 Pierre Le Marre
     * SPDX-License-Identifier: MIT
     */
    
    #ifndef UTILS_PATHS_H
    #define UTILS_PATHS_H
    
    #include <stdbool.h>
    
    #ifdef _WIN32
    #define PATH_SEPARATOR '\\'
    #define ALT_PATH_SEPARATOR '/'
    #define is_path_separator(s) \
        ((s) == PATH_SEPARATOR || (s) == ALT_PATH_SEPARATOR)
    #else
    #define PATH_SEPARATOR '/'
    #define is_path_separator(s) ((s) == PATH_SEPARATOR)
    #endif
    
    bool
    is_absolute(const char *path);
    
    #endif