Mercurial > emacs
comparison lib-src/emacsclient.c @ 74645:aa3039743d63
Comment and whitespace changes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 15 Dec 2006 19:05:47 +0000 |
parents | 4142abafc7b4 |
children | 303099bc66d9 6588c6259dfb |
comparison
equal
deleted
inserted
replaced
74644:4142abafc7b4 | 74645:aa3039743d63 |
---|---|
151 | 151 |
152 /* Message functions. */ | 152 /* Message functions. */ |
153 | 153 |
154 #ifdef WINDOWSNT | 154 #ifdef WINDOWSNT |
155 int | 155 int |
156 w32_window_app() | 156 w32_window_app () |
157 { | 157 { |
158 static int window_app = -1; | 158 static int window_app = -1; |
159 char szTitle[MAX_PATH]; | 159 char szTitle[MAX_PATH]; |
160 | 160 |
161 if (window_app < 0) | 161 if (window_app < 0) |
298 | 298 |
299 | 299 |
300 #ifdef WINDOWSNT | 300 #ifdef WINDOWSNT |
301 | 301 |
302 /* | 302 /* |
303 execvp() wrapper for Windows. Quotes arguments with embedded spaces. | 303 execvp wrapper for Windows. Quotes arguments with embedded spaces. |
304 | 304 |
305 This is necessary due to the broken implementation of exec* routines in | 305 This is necessary due to the broken implementation of exec* routines in |
306 the Microsoft libraries: they concatenate the arguments together without | 306 the Microsoft libraries: they concatenate the arguments together without |
307 quoting special characters, and pass the result to CreateProcess, with | 307 quoting special characters, and pass the result to CreateProcess, with |
308 predictably bad results. By contrast, Posix execvp passes the arguments | 308 predictably bad results. By contrast, Posix execvp passes the arguments |
309 directly into the argv[] array of the child process. | 309 directly into the argv array of the child process. |
310 */ | 310 */ |
311 int | 311 int |
312 w32_execvp (path, argv) | 312 w32_execvp (path, argv) |
313 char *path; | 313 char *path; |
314 char **argv; | 314 char **argv; |
495 | 495 |
496 return FALSE; | 496 return FALSE; |
497 } | 497 } |
498 | 498 |
499 #ifdef WINDOWSNT | 499 #ifdef WINDOWSNT |
500 /* Wrapper to make WSACleanup a cdecl, as required by atexit(). */ | 500 /* Wrapper to make WSACleanup a cdecl, as required by atexit. */ |
501 void | 501 void |
502 __cdecl close_winsock () | 502 __cdecl close_winsock () |
503 { | 503 { |
504 WSACleanup (); | 504 WSACleanup (); |
505 } | 505 } |
890 | 890 |
891 #ifdef WINDOWSNT | 891 #ifdef WINDOWSNT |
892 /* | 892 /* |
893 Modern Windows restrict which processes can set the foreground window. | 893 Modern Windows restrict which processes can set the foreground window. |
894 emacsclient can allow Emacs to grab the focus by calling the function | 894 emacsclient can allow Emacs to grab the focus by calling the function |
895 AllowSetForegroundWindow(). Unfortunately, older Windows (W95, W98 | 895 AllowSetForegroundWindow. Unfortunately, older Windows (W95, W98 |
896 and NT) lack this function, so we have to check its availability. | 896 and NT) lack this function, so we have to check its availability. |
897 */ | 897 */ |
898 if (emacs_pid) | 898 if (emacs_pid) |
899 { | 899 { |
900 HMODULE hUser32; | 900 HMODULE hUser32; |