Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!ateng.ateng.com!chip From: chip@ateng.ateng.com (Chip Salzenberg) Newsgroups: gnu.utils.bug Subject: GNU Make 3.56: Speed patch: Output of $(shell) Message-ID: Date: 11 Oct 89 15:58:42 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 27 [SPEED PATCH] This minor coding change speeds up the handling of "$(shell)" output. Index: function.c *************** *** 420,428 **** newlines in its output with spaces, and put that in the variable output buffer. */ ! if (buffer[i - 1] == '\n') --i; ! for (p = buffer; p < buffer + i; ++p) ! if (*p == '\n') ! *p = ' '; o = variable_buffer_output (o, buffer, i); } --- 420,428 ---- newlines in its output with spaces, and put that in the variable output buffer. */ ! if (i > 0 && buffer[i - 1] == '\n') --i; ! buffer[i] = '\0'; ! for (p = buffer; (p = index(p, '\n')) != NULL; ++p) ! *p = ' '; o = variable_buffer_output (o, buffer, i); }