X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fprogreloc.c;h=c6a541f0385c9204dab6d2c1a99dc1fef850419f;hb=0aa49ea72a8764e3065ebbfc55459232ca8fb021;hp=5efd2f95e066463f5736d42f354483e1528de48f;hpb=1b612639b0d75ca13f87f3ae5b1eda423cb21655;p=gnulib.git diff --git a/lib/progreloc.c b/lib/progreloc.c index 5efd2f95e..c6a541f03 100644 --- a/lib/progreloc.c +++ b/lib/progreloc.c @@ -30,7 +30,7 @@ #include #include -/* Get declaration of _NSGetExecutablePath on MacOS X 10.2 or newer. */ +/* Get declaration of _NSGetExecutablePath on Mac OS X 10.2 or newer. */ #if HAVE_MACH_O_DYLD_H # include #endif @@ -112,7 +112,7 @@ static int executable_fd = -1; static bool maybe_executable (const char *filename) { - /* Woe32 lacks the access() function. */ + /* The native Windows API lacks the access() function. */ #if !defined WINDOWS_NATIVE if (access (filename, X_OK) < 0) return false; @@ -143,8 +143,8 @@ maybe_executable (const char *filename) /* Determine the full pathname of the current executable, freshly allocated. Return NULL if unknown. - Guaranteed to work on Linux and Woe32. Likely to work on the other - Unixes (maybe except BeOS), under most conditions. */ + Guaranteed to work on Linux and native Windows. Likely to work on the + other Unixes (maybe except BeOS), under most conditions. */ static char * find_executable (const char *argv0) { @@ -202,7 +202,7 @@ find_executable (const char *argv0) } # endif # if HAVE_MACH_O_DYLD_H && HAVE__NSGETEXECUTABLEPATH - /* On MacOS X 10.2 or newer, the function + /* On Mac OS X 10.2 or newer, the function int _NSGetExecutablePath (char *buf, uint32_t *bufsize); can be used to retrieve the executable's full path. */ char location[4096];