From d365b8a4eeb6066f948aca53b661ad184a61683c Mon Sep 17 00:00:00 2001 From: Bob Andrews Date: Thu, 5 May 2022 14:24:02 +0200 Subject: [PATCH] Adjust comments --- src/common/searchpath.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/common/searchpath.c b/src/common/searchpath.c index fc23f47cb..3628dab5c 100644 --- a/src/common/searchpath.c +++ b/src/common/searchpath.c @@ -263,11 +263,14 @@ static char* GetProgPath(char* pathbuf, char* a0) #endif void AddSubSearchPathFromBin (SearchPaths* P, const char* SubDir) -{ -/* Windows only: -** Add a search path from the running binary, adding a subdirectory to +/* Add a search path from the running binary, adding a subdirectory to ** the parent directory of the directory containing the binary. +** +** currently this will work on POSIX systems and on Windows. Should +** we run into build errors on systems that are neither, we must add +** another exception below. */ +{ char* Ptr; char Dir[PATH_MAX]; @@ -277,7 +280,7 @@ void AddSubSearchPathFromBin (SearchPaths* P, const char* SubDir) return; } -#else +#else /* POSIX */ GetProgPath(Dir, ArgVec[0]);