Mercurial > emacs
diff nt/cmdproxy.c @ 49600:23a1cea22d13
Trailing whitespace deleted.
| author | Juanma Barranquero <lekktu@gmail.com> |
|---|---|
| date | Tue, 04 Feb 2003 14:56:31 +0000 |
| parents | f6aff87320dd |
| children | 695cf19ef79e d7ddb3e565de |
line wrap: on
line diff
--- a/nt/cmdproxy.c Tue Feb 04 13:30:45 2003 +0000 +++ b/nt/cmdproxy.c Tue Feb 04 14:56:31 2003 +0000 @@ -230,7 +230,7 @@ int i, rc; /* Search the directory for the program. */ - for (i = 0; i < n_exts; i++) + for (i = 0; i < n_exts; i++) { rc = SearchPath (dir, exec, exts[i], bufsize, buffer, &dummy); if (rc > 0) @@ -240,7 +240,7 @@ return 0; } -/* Return the absolute name of executable file PROG, including +/* Return the absolute name of executable file PROG, including any file extensions. If an absolute name for PROG cannot be found, return NULL. */ char * @@ -272,18 +272,18 @@ return NULL; } - if (GetCurrentDirectory (MAX_PATH, curdir) <= 0) + if (GetCurrentDirectory (MAX_PATH, curdir) <= 0) return NULL; /* Relative path; search in current dir. */ - if (strpbrk (prog, "\\")) + if (strpbrk (prog, "\\")) { if (search_dir (curdir, prog, MAX_PATH, absname) > 0) return strdup (absname); - else + else return NULL; } - + /* Just filename; search current directory then PATH. */ path = alloca (strlen (getenv ("PATH")) + strlen (curdir) + 2); strcpy (path, curdir); @@ -304,7 +304,7 @@ /* Move to the next directory. */ path = p + 1; - } + } return NULL; } @@ -322,7 +322,7 @@ char * cmdline = GetCommandLine (); int arg_bytes = 0; - + } #endif @@ -384,7 +384,7 @@ sec_attrs.nLength = sizeof (sec_attrs); sec_attrs.lpSecurityDescriptor = NULL; sec_attrs.bInheritHandle = FALSE; - + memset (&start, 0, sizeof (start)); start.cb = sizeof (start);
