Commit Graph

39 Commits

Author SHA1 Message Date
christos
6438f483a9 revert previous; don't change the logic. 2011-09-08 12:00:26 +00:00
christos
90932ffc48 don't forget to 0 init the rest of the array since now we removed the memset 2011-09-08 01:19:52 +00:00
christos
47ecf56863 a little more KNF, plus add \e (from the previous commit) 2011-09-08 01:18:44 +00:00
christos
0ffd30a090 It is pointless to assign to the CLASS.set member and never use it again.
Perhaps the author meant to check if it is already set and not allocated it
again to avoid memory leaks? Anyway make everything const back and delete
the unused code. Yes, this leaks the same way as before but it is
insignificant. If we want to save memory we could use bytes or even bits
instead of ints, and not allocate/initialize the same thing multiple times.
2011-09-08 01:18:05 +00:00
joerg
91a068001c Add comment to explain the const issue to avoid future trouble. 2011-09-07 22:59:19 +00:00
riz
958c749ae4 Remove newly-introduced const qualifier from static CLASS classes[],
as CLASS->set gets changed in genclass().  Fixes a segfault doing:

tr '[:lower:]' '[:upper:]'

on (at least) amd64.
2011-09-07 18:21:41 +00:00
joerg
1d57801981 ANSIfy. Sprinkle const and __dead. 2011-09-06 18:33:46 +00:00
mrg
75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
joerg
2ec9715635 Do not use \." for comments, always use .\". Discussed with uwe@. 2009-11-12 00:43:52 +00:00
joerg
de2e5c0dbd Fix markup. 2009-08-22 00:23:02 +00:00
lukem
7acf67f489 Fix WARNS=4 (-Wcast-qual -Wextra) 2009-04-13 23:50:49 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
hubertf
48b31403c5 Remove duplicate #includes
From Slava Semushin <slava.semushin@gmail.com>, via private mail
2007-01-17 00:21:43 +00:00
wiz
bcbefab5bf "is be" -> "is" 2006-09-17 12:15:20 +00:00
mrg
20265245bf use -Wno-pointer-sign with GCC4. 2006-05-12 01:26:05 +00:00
wiz
59757c426a As in other man pages, use .Dq for strings, and .Sq for single characters.
Add a comma after e.g.. Replace .sp with .Pp.
2004-03-24 11:38:27 +00:00
fair
c223370599 Document that tr(1) was written for US-ASCII and may not work as
expected on other character sets which do not share ASCII's properties
(e.g. a symmetric set of capital and lower case characters), per PR 18738

Change all double quotes to nroff macros.
Change "System V" references to the .At macro.
2004-03-24 06:35:53 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
jmmv
7efaf55594 Add the EXIT STATUS section header. 2003-07-20 14:20:34 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz
9a11884a17 Punctuation nit. 2001-12-08 19:19:20 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
kleink
a7a759c81e Correct the ctype function used for [:print:] character class; from Soren S.
Jorvang in PR bin/7167.
1999-03-16 14:57:48 +00:00
perry
34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
lukem
7e4d6ea181 WARNSify, fix .Nm usage, getopt returns -1 not EOF, use <err.h> 1997-10-20 00:56:04 +00:00
pk
577cacfbd8 Make more 8-bit clean (from Andreas Gustafsson; PR#1190). 1995-11-01 00:45:22 +00:00
jtc
f1df59ade6 Sync with 4.4lite2 1995-08-31 22:11:37 +00:00
jtc
a1228f558a Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-07 08:35:02 +00:00
jtc
5587236c81 From Jeremy Scofield -- correctly terminate ranges with backquoted endpoint. 1993-10-22 22:40:17 +00:00
jtc
3e7bd7ef44 Document "blank" character class. 1993-09-21 23:39:21 +00:00
jtc
be9cb2234b Remove explicit declarations of isfoo() functions, because we fixed
ctype.h to declare the isfoo() functions.
Remove isblank, as our C library now provides it.
1993-09-14 01:17:46 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft
75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
mycroft
d77ae6d412 Don't repeat the last character in a range. 1993-07-29 16:29:40 +00:00
glass
9acecc037c integrated updated 'tr' from ftp.uu.net:bsd-sources 1993-04-27 04:52:26 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00