<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/coreutils/cut.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2024-12-20T23:43:45+00:00</updated>
<entry>
<title>cut: code shrink</title>
<updated>2024-12-20T23:43:45+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-20T23:43:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=14f57f5357cb674b88e7cdaff6267bf9d84c6b80'/>
<id>urn:sha1:14f57f5357cb674b88e7cdaff6267bf9d84c6b80</id>
<content type='text'>
move "linenum" manipulations to the one place where it is used.

function                                             old     new   delta
cut_main                                            1373    1360     -13

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: code shrink</title>
<updated>2024-12-20T23:24:30+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-20T23:24:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1ea89fa98a7c4b1b6924f136963c91caf5a5dccb'/>
<id>urn:sha1:1ea89fa98a7c4b1b6924f136963c91caf5a5dccb</id>
<content type='text'>
This change eliminates one temporary:

-       if (dcount++ &lt; cut_list[cl_pos].startpos)
+       dcount++;
+       if (dcount &lt;= cut_list[cl_pos].startpos)

function                                             old     new   delta
cut_main                                            1402    1373     -29

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: fix up -D/-s behavior with -F</title>
<updated>2024-12-20T21:12:33+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-20T21:12:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b03f5162ac239c3743cfac246b3760b0020f4d23'/>
<id>urn:sha1:b03f5162ac239c3743cfac246b3760b0020f4d23</id>
<content type='text'>
function                                             old     new   delta
cut_main                                            1388    1402     +14
packed_usage                                       34934   34933      -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-1)              Total: 13 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: remove unnecessary initialization of regmatch_t</title>
<updated>2024-12-20T20:46:32+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-20T20:46:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=dd40b40ee59e1eae6a70265741657bc55d960cce'/>
<id>urn:sha1:dd40b40ee59e1eae6a70265741657bc55d960cce</id>
<content type='text'>
function                                             old     new   delta
cut_main                                            1404    1388     -16

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: shorten error messages on bad syntax even more</title>
<updated>2024-12-16T00:12:17+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-16T00:10:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e2304d47a98a2eff65a3a0a13c53df2cc69529b1'/>
<id>urn:sha1:e2304d47a98a2eff65a3a0a13c53df2cc69529b1</id>
<content type='text'>
$ cut -s -b3
cut: -s requires -f or -F
$ cut -d@ -b3
cut: -d DELIM requires -f or -F

function                                             old     new   delta
static.requires_f                                      -      19     +19
static._op_on_field                                   32       -     -32
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/0 up/down: 19/-32)            Total: -13 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: shorten error messages on bad syntax</title>
<updated>2024-12-15T23:53:51+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-15T23:51:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ee8b94acbf9ac9a6a48831a244cfef897affe82e'/>
<id>urn:sha1:ee8b94acbf9ac9a6a48831a244cfef897affe82e</id>
<content type='text'>
We don't need to mimic GNU cut error messages.

$ cut -d@ -b3
cut: -d DELIM makes sense only with -f or -F
$ cut -s -b3
cut: -s makes sense only with -f or -F

function                                             old     new   delta
static._op_on_field                                   31      32      +1
.rodata                                           105659  105598     -61
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 1/-61)             Total: -60 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: terminate cut_list[] so that we don't need "size of the array" variable</title>
<updated>2024-12-15T23:32:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-15T23:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0bd84c94720b5a68d97c05975220e6482c455623'/>
<id>urn:sha1:0bd84c94720b5a68d97c05975220e6482c455623</id>
<content type='text'>
function                                             old     new   delta
cut_main                                            1410    1404      -6

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: we can't get empty cut_list[], remove the check for that</title>
<updated>2024-12-15T23:19:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-15T23:19:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ba9651b803f0eb2a8cba0205ae72c75ab773adaf'/>
<id>urn:sha1:ba9651b803f0eb2a8cba0205ae72c75ab773adaf</id>
<content type='text'>
function                                             old     new   delta
.rodata                                           105685  105659     -26

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: disallow -f '' and -f '-'</title>
<updated>2024-12-15T11:27:33+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-15T11:26:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e8622f0d8524baf8a08a734b7d0fb6aac31b5ee2'/>
<id>urn:sha1:e8622f0d8524baf8a08a734b7d0fb6aac31b5ee2</id>
<content type='text'>
function                                             old     new   delta
cut_main                                            1391    1410     +19

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>cut: fix -F n-m to match toybox</title>
<updated>2024-12-14T12:58:49+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-12-14T12:58:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b25ea3f156c6b5927b358f9b12b90f1852f30311'/>
<id>urn:sha1:b25ea3f156c6b5927b358f9b12b90f1852f30311</id>
<content type='text'>
function                                             old     new   delta
cut_main                                            1339    1391     +52

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
