🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Derek Clegg Thu, 18 May 1989 18:22
`make' handles `-l 2.0' incorrectly.
#1613
Author: Derek Clegg
Date: Thu, 18 May 1989 18:22
38 lines
1385 bytes
Version:
    Make version 3.48

Problem:
    `make' handles floating point arguments following a flag with an
    intervening space (such as `-l 2.0') incorrectly.

Fix:
    Apply the following patch:

*** make-3.48/make.c	Tue May 16 10:16:11 1989
--- make/make.c	Tue May 16 10:25:59 1989
***************
*** 891,900 ****
		    case floating:
		      if (*sw == '\0')
			arg = argv[++i];
		      else
			arg = sw;
  		      if (arg != 0 && (*arg == '.' || isdigit (*arg)))
  			{
! 			  *(double *) cs->value_ptr = atof (sw);
  			  while (*arg == '.' || isdigit (*arg))
  			    ++arg;
--- 895,904 ----
		    case floating:
		      if (*sw == '\0')
			arg = argv[++i];
		      else
			arg = sw;
  		      if (arg != 0 && (*arg == '.' || isdigit (*arg)))
  			{
! 			  *(double *) cs->value_ptr = atof (arg);
  			  while (*arg == '.' || isdigit (*arg))
  			    ++arg;

Notes:
    I am using a Sun 3/60 with UNIX 4.2 (Sun release 4.0.1).
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads