🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #493

GNU Make 3.56: Speed patch: Output of $(shell)

#493
From: Chip Salzenberg
Date: Wed, 11 Oct 1989 15:58
27 lines
1172 bytes
[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);
  	      }
Technical Details
Message-ID: <m0gElLn-0002SKC@ateng.ateng.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!ateng.ateng.com!chip

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <m0gElLn-0002SKC@ateng.ateng.com>
Date: 11 Oct 89 15:58:42 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 27