# HG changeset patch # User Richard M. Stallman # Date 1166209547 0 # Node ID aa3039743d63cc2807eff71c9fed864582de18b0 # Parent 4142abafc7b4f9758472ec7bf7f49c8ae13ed7ef Comment and whitespace changes. diff -r 4142abafc7b4 -r aa3039743d63 lib-src/emacsclient.c --- a/lib-src/emacsclient.c Fri Dec 15 17:50:28 2006 +0000 +++ b/lib-src/emacsclient.c Fri Dec 15 19:05:47 2006 +0000 @@ -153,7 +153,7 @@ #ifdef WINDOWSNT int -w32_window_app() +w32_window_app () { static int window_app = -1; char szTitle[MAX_PATH]; @@ -300,13 +300,13 @@ #ifdef WINDOWSNT /* - execvp() wrapper for Windows. Quotes arguments with embedded spaces. + execvp wrapper for Windows. Quotes arguments with embedded spaces. This is necessary due to the broken implementation of exec* routines in the Microsoft libraries: they concatenate the arguments together without quoting special characters, and pass the result to CreateProcess, with predictably bad results. By contrast, Posix execvp passes the arguments - directly into the argv[] array of the child process. + directly into the argv array of the child process. */ int w32_execvp (path, argv) @@ -497,7 +497,7 @@ } #ifdef WINDOWSNT -/* Wrapper to make WSACleanup a cdecl, as required by atexit(). */ +/* Wrapper to make WSACleanup a cdecl, as required by atexit. */ void __cdecl close_winsock () { @@ -892,7 +892,7 @@ /* Modern Windows restrict which processes can set the foreground window. emacsclient can allow Emacs to grab the focus by calling the function - AllowSetForegroundWindow(). Unfortunately, older Windows (W95, W98 + AllowSetForegroundWindow. Unfortunately, older Windows (W95, W98 and NT) lack this function, so we have to check its availability. */ if (emacs_pid)