Commit Graph

20 Commits

Author SHA1 Message Date
dholland
7c248df2ae Whitespace. 2013-08-11 01:54:35 +00:00
dholland
8a7a973b90 Don't explicitly zero bss variables that are already zeroed. 2013-08-11 00:49:15 +00:00
dholland
c47da08424 Add comments explaining how this works. 2013-08-11 00:48:37 +00:00
dholland
8b42fe334c Simplify the parser handling. 2013-08-11 00:39:22 +00:00
dholland
e141bc4323 Remove silly written-out initialization of string1. 2013-08-11 00:34:09 +00:00
dholland
848d757378 Make tr -c work. Fixes PR 48113.
When -c is in effect, scan string1 first, complement it, and then
iterate over the results while scanning string2. Otherwise, scan
string1 and string2 together as before.
2013-08-11 00:28:46 +00:00
dholland
567ab40d47 apply some CSE 2013-08-11 00:12:47 +00:00
dholland
9dd74a9973 Restore preexisting wrong behavior of tr -c (translates all characters
to the last letter in string2) instead of a different wrong behavior
(translates all characters to 0xff) accidentally just introduced.
2013-08-11 00:11:46 +00:00
dholland
48dbbc109e sprinkle const 2013-08-11 00:05:49 +00:00
dholland
7f7f549599 Make the parser state opaque. While here, fix a memory leak when using
the [:foo:] syntax.
2013-08-11 00:04:14 +00:00
dholland
d05d2aa5a7 Expose less of the parser state outside str.c. 2013-08-10 23:54:41 +00:00
joerg
1d57801981 ANSIfy. Sprinkle const and __dead. 2011-09-06 18:33:46 +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
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
lukem
7e4d6ea181 WARNSify, fix .Nm usage, getopt returns -1 not EOF, use <err.h> 1997-10-20 00:56:04 +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
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +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