--- parser3/src/include/pa_dir.h 2017/02/06 16:17:12 1.28 +++ parser3/src/include/pa_dir.h 2026/09/18 20:08:37 1.35 @@ -1,14 +1,14 @@ /** @file Parser: directory scanning for different OS-es decls. - Copyright (c) 2000-2015 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2000-2026 Art. Lebedev Studio (https://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_DIR_H #define PA_DIR_H -#define IDENT_PA_DIR_H "$Id: pa_dir.h,v 1.28 2017/02/06 16:17:12 moko Exp $" +#define IDENT_PA_DIR_H "$Id: pa_dir.h,v 1.35 2026/09/18 20:08:37 moko Exp $" #include "pa_config_includes.h" @@ -21,7 +21,7 @@ #include -#define MAXPATH MAX_PATH +#define MAXPATH ((MAX_PATH)*2) /*UTF-16*/ struct ffblk { struct _WIN32_FIND_DATAW stat; @@ -80,4 +80,14 @@ void findclose(struct ffblk *_ffblk); } \ } +class String; + +#ifdef WIN32 +bool is_os_absolute_path(const String& path); +bool is_os_absolute_path(const char* path); +#else +inline bool is_os_absolute_path(const String&) { return false; } +inline bool is_os_absolute_path(const char*) { return false; } +#endif + #endif