NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/50768 CVS commit: src/usr.bin/units



The following reply was made to PR bin/50768; it has been noted by GNATS.

From: "David A. Holland" <dholland%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/50768 CVS commit: src/usr.bin/units
Date: Fri, 5 Feb 2016 03:30:08 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Fri Feb  5 03:30:08 UTC 2016
 
 Modified Files:
 	src/usr.bin/units: units.c
 
 Log Message:
 Improve the parser. Now we understand negative exponents; fixes PR 50768.
 
 Also handle negative numbers better in general (don't randomly drop
 the sign in a number of cases) and don't choke on exponents > 9.
 
 This commit alters the meaning of a few previously valid but marginal
 inputs (e.g. "3 foot-5 pound" is now treated as "3*-5 foot-pound"
 rather than "3*5 foot-pound"; if you want the latter insert another
 space) but corrects obviously wrong handling of many more.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.25 -r1.26 src/usr.bin/units/units.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index