<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/cut.c, branch v5.2.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v5.2.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v5.2.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2004-01-21T22:50:28Z</updated>
<entry>
<title>(usage): Use EXIT_SUCCESS, not 0, for clarity.</title>
<updated>2004-01-21T22:50:28Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2004-01-21T22:50:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e0261d2e7271a14b767e6851240881f4a0ef4648'/>
<id>urn:sha1:e0261d2e7271a14b767e6851240881f4a0ef4648</id>
<content type='text'>
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.

(FATAL_ERROR, main): Exit with status EXIT_FAILURE, not 2, on errors.
</content>
</entry>
<entry>
<title>Fix 'cut' problems with size_t overflow and unsigned int.</title>
<updated>2003-11-06T08:37:55Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-11-06T08:37:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c1f33f59f59af314aeb898e1c8d267dd5d808171'/>
<id>urn:sha1:c1f33f59f59af314aeb898e1c8d267dd5d808171</id>
<content type='text'>
More generally, resize integer variables to fit use more precisely.

(ADD_RANGE_PAIR): Remove unnecessary parens.
(struct range_pair): Make members to be of type size_t, not unsigned.
(max_range_endpoint, eol_range_start): Now size_t, not unsigned.
(suppress_non_delimited, output_delimiter_specified,
have_read_stdin, print_kth, set_fields): Now bool, nt int.
(delim): Now unsigned char, not int.
(mark_printable_field, is_printable_field, is_range_start_index,
set_fields, set_fields, cut_bytes, cut_fields):
Use size_t, not unsigned, for field and byte counts.
(hash_int): Use uintptr_t, not unsigned, for pointers converted
to integers.  This squeezes more info out of them.
(set_fields, cut_bytes, cut_fields, main):
Use bool, not int, for booleans.
(set_fields): Allocate zeroed byte array with xzalloc, not xcalloc.
</content>
</entry>
<entry>
<title>(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,</title>
<updated>2003-11-04T06:28:01Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-11-04T06:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6ffc95a9e32aa394f75dfd67c79d3c2bd15c034a'/>
<id>urn:sha1:6ffc95a9e32aa394f75dfd67c79d3c2bd15c034a</id>
<content type='text'>
to avoid potential overflow in pointer arithmetic.
(set_fields): Use not `1', but rather `sizeof *printable_field' as
second argument to xcalloc.
</content>
</entry>
<entry>
<title>(hash_int): Adjust to reflect</title>
<updated>2003-10-25T15:33:28Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-10-25T15:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=24a7d395e370a8707873ea2a759fcc491968884e'/>
<id>urn:sha1:24a7d395e370a8707873ea2a759fcc491968884e</id>
<content type='text'>
type changes (unsigned int -&gt; size_t) in hash.c.
</content>
</entry>
<entry>
<title>Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change</title>
<updated>2003-10-18T10:05:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-10-18T10:05:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cf4fdf373fa202877d8141fcf7c1ef655a8e06d9'/>
<id>urn:sha1:cf4fdf373fa202877d8141fcf7c1ef655a8e06d9</id>
<content type='text'>
of 2003-09-19.  Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.

* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
</content>
</entry>
<entry>
<title>(WRITTEN_BY): Rename from AUTHORS.</title>
<updated>2003-09-18T22:19:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-09-18T22:19:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=bafd927f03084ba6b12f7ff1b95352eb0e3a0a84'/>
<id>urn:sha1:bafd927f03084ba6b12f7ff1b95352eb0e3a0a84</id>
<content type='text'>
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
</content>
</entry>
<entry>
<title>revert previous change</title>
<updated>2003-09-18T19:39:12Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-09-18T19:39:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c6ec14449470fce01a93bd0724ea3146c3ba3e7e'/>
<id>urn:sha1:c6ec14449470fce01a93bd0724ea3146c3ba3e7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update AUTHORS definition to be a comma-separated list of strings and/or update</title>
<updated>2003-09-18T18:22:23Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-09-18T18:22:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3280bf4b5571fd4425c7e6f7d765d08b77ce8d8a'/>
<id>urn:sha1:3280bf4b5571fd4425c7e6f7d765d08b77ce8d8a</id>
<content type='text'>
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
</content>
</entry>
<entry>
<title>Include getndelim2.h rather than getdelim2.h.</title>
<updated>2003-08-07T09:33:48Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-08-07T09:33:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=00f84b1e6488992a7a5d8f970875db085c1c9963'/>
<id>urn:sha1:00f84b1e6488992a7a5d8f970875db085c1c9963</id>
<content type='text'>
(cut_fields): Invoke getndelim2 rather than getdelim2.
</content>
</entry>
<entry>
<title>(cut_fields): Don't read again after encountering EOF.</title>
<updated>2003-08-02T19:53:52Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-08-02T19:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=aca28ca9ac235250ba848c707522edddbac70c42'/>
<id>urn:sha1:aca28ca9ac235250ba848c707522edddbac70c42</id>
<content type='text'>
E.g., `cut -f2' would do so.
</content>
</entry>
</feed>
