Commit Graph

63 Commits

Author SHA1 Message Date
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
joerg d9c7ee5b63 Annotate functions using format strings. 2014-01-07 02:07:08 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
wiz 4bdac686eb Sort options in man page SYNOPSIS and sync usage with it.
Bump date.
2013-01-06 00:19:13 +00:00
apb e5b434bcf4 Really expand the name, not the definition, as the comment says. 2013-01-02 14:05:04 +00:00
apb 25dbb40a11 fix incomplete comment 2013-01-01 12:45:06 +00:00
apb c6933fca67 Add -l and -L options to units(1). "-l" simply lists all unit
definitions, while "-L" alsoreduces them to depend only on a few
primitive units (such as m, kg, sec).
2013-01-01 11:51:55 +00:00
apb 55f985ffa7 Correctly ignore duplicate definitions. "continue" applies only to the
innermost loop.
2013-01-01 11:44:00 +00:00
apb 1d8e06e4e4 Rename "tappit-hen" to "tappithen" because unit names cannot contain
hyphens.  Also change the definition from "3 imperial" (a dimensionless
quantity) to "3 bottle" (2.25 litres).  Wikipedia and several other web
sites say 3 bottles or 2.25 litres, but
<http://www.christies.com/lotfinder/wine/chateau-lafite-rothschild-vintage-1811-1-tappit-hen-per-4992576-details.aspx>
says:

    There seems to be no firm definition of the bottle size referred to
    as "tappit-hen". Believed to be of Scottish origin, a tappit-hen
    can vary, according to which definition one follows, from 1 1/2
    bottles to a tregnum or 3-bottle bottle. It is safest to say that it
    approximates to a magnum.

and ends with:

    1 Tappit-Hen (2.25 liters) per lot
2012-12-28 17:57:46 +00:00
apb fd02783e45 Allow a number and a unit to be juxtaposed without an intervening space.
Now "litres/100km" works as desired, instead of silently being
treated as "litres/100".
2012-12-28 17:07:03 +00:00
apb dd9b8fe876 Fix references to undefined units:
* "southamericarand" should be "southafricarand";
* "sidereal day" should be "siderealday";
* "perusol" should be "perunewsol".
2012-12-28 13:45:53 +00:00
apb 5cd73ddec1 Improve the description of the [count] from-unit to-unit arguments. 2012-12-28 13:25:25 +00:00
matt d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
joerg 1ed141bb41 ANSIfy, static + __dead 2011-09-06 18:35:41 +00:00
dholland efb9133f26 Expand user warning (adding examples) and move to CAVEATS as it's not fixable. 2011-04-03 19:44:15 +00:00
dholland ba1f9c173a remove stray extra word 2011-04-03 19:25:05 +00:00
fair 99c0cae956 Add dholland's comment about units not warning users about non-sensical
conversions to the BUGS section.
2011-03-28 16:09:10 +00:00
dholland 75f2c9abd2 fix typo 2011-03-28 00:14:51 +00:00
dholland 8cf15952a4 Update radioactivity-related units from http://physics.nist.gov/cuu/Units/.
The prior definition of sievert was, as far as I can tell, entirely wrong.

Caution: while "gray" and "sievert" have the same dimensionality,
they're not interchangeable -- you need to multiply by a fudge factor
that varies depending on the type of radiation and the tissue it's
affecting. (Dimensional analysis is often not a substitute for knowing
what you're doing.)

It would be nice if units had a way to warn users when they're trying
to do something that doesn't make sense, since there are lots of ways
to do so, but it doesn't, and it wouldn't be easy to arrange in the
general case.
2011-03-28 00:08:47 +00:00
lukem 95f5c18e58 Appease -Wcast-qual with a liberal sprinkling of const. 2009-04-14 05:55:12 +00:00
dogcow 60918448c9 dipotre -> dioptre.
(nobody's noticed this typo since the file was originally added in 1993...)
2007-02-15 22:37:27 +00:00
christos 4f0fad7e36 Coverity CID 814: Add extraneous checks to shut up Coverity. 2006-05-01 00:00:12 +00:00
wiz 013b8f4ef7 Use .Nm instead of the verbose program name. From YOMURA Masanori in private mail. 2005-09-11 23:28:55 +00:00
groo 83d3e13964 A hogshead is defined in the U.S. to be 63 gallons, and otherwise refers
to a volume unit of varying capacity (betwen 63 and 140(!)) gallons.

Since the U.S. is the only place it is defined, and I can find little
evidence to support the "barrel" definition, make it 63 gallons.

Like everything, this was prompted by the Simpsons.

"The metric system is a tool of the devil!  My car gets 40 rods to the
 hogshead, and that's the way I likes it!"

		-- Abe Simpson
2005-02-01 01:08:10 +00:00
dsl df38245cee Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
mycroft 8ee74ae180 Recognize reciprocal conversions and generate output like GNU units(1). 2003-12-05 22:26:43 +00:00
atatat 2025668369 Remove jeroboam, magnum, and rehoboam from the "trivia" section and
put them in another section with all the other bottles (the new aptly
named "bottles" section).

Also, add shed (1e-24 barn).
2003-08-23 04:15:33 +00:00
dogcow 9217e5df47 add the smoot 2003-08-12 19:03:32 +00:00
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
itojun 4005e1b9e9 use strl* 2003-05-17 21:05:10 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
kristerw 29301c43b8 Remove bogus output of '\n' when using -q. 2002-08-31 07:26:17 +00:00
atatat d68a625e3d Fix a spelling error in the usage, and while I'm here, make it a
little more intelligent about the arguments.  A count of the
"from-unit" can now be passed more easily on the command line.
2002-04-02 18:08:28 +00:00
wiz 2246cc750f mdoc'ify. Sort sections. 2001-12-18 01:06:09 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
groo f320ce17e1 Add ``score'' (20) to trivia section. 2001-11-04 03:33:49 +00:00
bjh21 6b49898e83 While I'm here, for those currencies that have a fixed exchange rate against
the Euro (BEF, DEM, ESP, FRF, IEP, ITL, LUF, NLG, ATS, PTE, FIM, GRD), use
that exchange rate.
2001-10-16 12:53:29 +00:00
bjh21 02f58b4bee Add "rackunit" (alias "RU" or "U"). 2001-10-16 12:09:04 +00:00
wiz b4c1ab272c Add 's' to netherlandguilder. Fixes bin/12082 by Benjamin Wong. 2001-01-30 12:26:11 +00:00
mjl dba0f7f9f3 Tyop: millennium, not millenium (FreeBSD PR/24369) 2001-01-30 00:22:29 +00:00
cgd db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
hubertf d4bc24553d Add euro, per PR 6898 by Anders Magnusson <ragge@ludd.luth.se>
Value taken from www.deutsche-bank.de.
1999-03-15 16:02:55 +00:00
ross 73e63f19fe Fix warning. 1999-03-09 03:31:43 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
lukem 9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
perry db49a9331a change includes to fix compiler warning 1998-02-03 04:08:01 +00:00
lukem 2c87553437 WARNSify, fix .Nm usage, deprecate register, use <err.h> 1997-10-20 02:36:41 +00:00
christos 3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +00:00