summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNice Zombies <nineteendo19d0@gmail.com>2024-04-25 09:07:38 (GMT)
committerGitHub <noreply@github.com>2024-04-25 09:07:38 (GMT)
commit10bb90ed49a81a525b126ce8e4d8564c1616d0b3 (patch)
treed75d8c65579f7e04a11abf3d04bdc64fd8cb1b3e /Include
parente38b43c213a8ab2ad9748bac2732af9b58c816ae (diff)
downloadcpython-10bb90ed49a81a525b126ce8e4d8564c1616d0b3.zip
cpython-10bb90ed49a81a525b126ce8e4d8564c1616d0b3.tar.gz
cpython-10bb90ed49a81a525b126ce8e4d8564c1616d0b3.tar.bz2
gh-102511: Speed up os.path.splitroot() with native helpers (GH-118089)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_fileutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index 5c55282..bc8100b 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -290,6 +290,8 @@ extern wchar_t *_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t
extern HRESULT PathCchSkipRoot(const wchar_t *pszPath, const wchar_t **ppszRootEnd);
#endif /* defined(MS_WINDOWS_GAMES) && !defined(MS_WINDOWS_DESKTOP) */
+extern void _Py_skiproot(const wchar_t *path, Py_ssize_t size, Py_ssize_t *drvsize, Py_ssize_t *rootsize);
+
// Macros to protect CRT calls against instant termination when passed an
// invalid parameter (bpo-23524). IPH stands for Invalid Parameter Handler.
// Usage: