]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/read.c(unescape_char): Use C comments not C++ comments.
authorPaul Smith <psmith@gnu.org>
Sun, 22 Jul 2018 13:43:45 +0000 (09:43 -0400)
committerPaul Smith <psmith@gnu.org>
Fri, 3 Aug 2018 00:59:02 +0000 (20:59 -0400)
* src/posixos.c(set_blocking): Ditto.
* src/w32/subproc/sub_proc.c(process_init): Ditto

src/posixos.c
src/read.c
src/w32/subproc/sub_proc.c

index 0afc4987e65e8e897d5784ef9bf533c3e5f3ff00..a4aa6f771d537ac8f0cd1183bc747140b01360ad 100644 (file)
@@ -65,7 +65,7 @@ make_job_rfd (void)
 static void
 set_blocking (int fd, int blocking)
 {
-  // If we're not using pselect() don't change the blocking
+  /* If we're not using pselect() don't change the blocking.  */
 #ifdef HAVE_PSELECT
   int flags;
   EINTRLOOP (flags, fcntl (fd, F_GETFL));
index 6801eebd333e85e61c77f8605218bfe590fa60ac..d23d5fd0490fbdc7c422a8dcae58697a7806dd0b 100644 (file)
@@ -2382,7 +2382,7 @@ unescape_char (char *string, int c)
               memmove (p, s, l);
               p += l;
 
-              // If we hit the end of the string, we're done
+              /* If we hit the end of the string, we're done.  */
               if (*e == '\0')
                 break;
             }
index 9ff136f4d883d24569371d261d5abb48258c2056..507d683e0c398bb3dcad3aacce7aea92664d3598 100644 (file)
@@ -412,9 +412,9 @@ process_init()
         inherit.lpSecurityDescriptor = (PSECURITY_DESCRIPTOR)(&sd);
         inherit.bInheritHandle = TRUE;
 
-        // By convention, parent gets pipe[0], and child gets pipe[1]
-        // This means the READ side of stdin pipe goes into pipe[1]
-        // and the WRITE side of the stdout and stderr pipes go into pipe[1]
+        /* By convention, parent gets pipe[0], and child gets pipe[1].
+           This means the READ side of stdin pipe goes into pipe[1] and the
+           WRITE side of the stdout and stderr pipes go into pipe[1].  */
         if (CreatePipe( &stdin_pipes[1], &stdin_pipes[0], &inherit, 0) == FALSE ||
         CreatePipe( &stdout_pipes[0], &stdout_pipes[1], &inherit, 0) == FALSE ||
         CreatePipe( &stderr_pipes[0], &stderr_pipes[1], &inherit, 0) == FALSE) {
@@ -424,9 +424,7 @@ process_init()
                 return((HANDLE)pproc);
         }
 
-        //
-        // Mark the parent sides of the pipes as non-inheritable
-        //
+        /* Mark the parent sides of the pipes as non-inheritable.  */
         if (SetHandleInformation(stdin_pipes[0],
                                 HANDLE_FLAG_INHERIT, 0) == FALSE ||
                 SetHandleInformation(stdout_pipes[0],
@@ -832,8 +830,8 @@ proc_stdin_thread(sub_process *pproc)
                 if (WriteFile( (HANDLE) pproc->sv_stdin[0], pproc->inp, pproc->incnt,
                                          &in_done, NULL) == FALSE)
                         _endthreadex(0);
-                // This if should never be true for anonymous pipes, but gives
-                // us a chance to change I/O mechanisms later
+                /* This if should never be true for anonymous pipes, but gives
+                   us a chance to change I/O mechanisms later.  */
                 if (in_done < pproc->incnt) {
                         pproc->incnt -= in_done;
                         pproc->inp += in_done;
@@ -841,7 +839,7 @@ proc_stdin_thread(sub_process *pproc)
                         _endthreadex(0);
                 }
         }
-        return 0; // for compiler warnings only.. not reached
+        return 0; /* for compiler warnings only.. not reached.  */
 }
 
 static DWORD