<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/compare_string_array.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>2021-02-05T11:24:06+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2021-02-05T11:24:06+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-05T11:24:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=32e19e7ae8b0d76d69871ba234e8f0af31baff4e'/>
<id>urn:sha1:32e19e7ae8b0d76d69871ba234e8f0af31baff4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libbb: code shrink and speed up index_in_strings()</title>
<updated>2021-02-02T13:37:37+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-29T13:23:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bcf91d276047910538c5de0a45f3a4645e3ff471'/>
<id>urn:sha1:bcf91d276047910538c5de0a45f3a4645e3ff471</id>
<content type='text'>
Rewrite index_in_strings() to replace calls to strcmp()/strlen().
With this change searching for valid names in the applet_names
array (for example) is 40% faster.

The code has to assume the strings aren't sorted, so will always scan
the entire array when presented with an invalid name.

function                                             old     new   delta
index_in_strings                                      63      56      -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-7)               Total: -7 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2020-07-09T12:10:58+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-07-09T12:10:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9c0b2f7020d7c30b21a930ef54be632e092e533b'/>
<id>urn:sha1:9c0b2f7020d7c30b21a930ef54be632e092e533b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compare_string_array: code shrink</title>
<updated>2020-06-29T14:09:46+00:00</updated>
<author>
<name>Martin Lewis</name>
<email>martin.lewis.x84@gmail.com</email>
</author>
<published>2020-06-11T20:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c9fc15359ef8fe5aa98ab0308c1563d9bcf99bb8'/>
<id>urn:sha1:c9fc15359ef8fe5aa98ab0308c1563d9bcf99bb8</id>
<content type='text'>
Code shrink and prevention of possible out of bounds access.

function                                             old     new   delta
nth_string                                            36      26     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10)             Total: -10 bytes
   text	   data	    bss	    dec	    hex	filename
 981342	  16915	   1872	1000129	  f42c1	busybox_old
 981332	  16915	   1872	1000119	  f42b7	busybox_unstripped

Signed-off-by: Martin Lewis &lt;martin.lewis.x84@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>win32: add a case-insensitive version of is_suffixed_with()</title>
<updated>2018-12-09T14:47:42+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-12-09T14:46:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6691b2e8d230e1c85d1a31a752f9f5b6933edbb0'/>
<id>urn:sha1:6691b2e8d230e1c85d1a31a752f9f5b6933edbb0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lineedit: improvements to tab completion</title>
<updated>2018-12-08T16:05:12+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-12-08T15:45:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=195902a645b794092959ac3818f367104c7ffeb8'/>
<id>urn:sha1:195902a645b794092959ac3818f367104c7ffeb8</id>
<content type='text'>
Since getpwent isn't implemented for WIN32 there's no point in
enabling FEATURE_USERNAME_COMPLETION.

Use case-insensitive comparisons when matching filenames.

The code to exclude non-executables when tab completing executables
is WIN32-specific and shouldn't omit directories.
</content>
</entry>
<entry>
<title>whitespace and comment format fixes, no code changes</title>
<updated>2017-10-05T12:40:24+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-10-05T12:40:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ebe6d9d8758d36e03cf39b6587597c67ab778436'/>
<id>urn:sha1:ebe6d9d8758d36e03cf39b6587597c67ab778436</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: another unit test for is_suffixed_with</title>
<updated>2015-09-15T21:38:01+00:00</updated>
<author>
<name>Tito Ragusa</name>
<email>farmatito@tiscali.it</email>
</author>
<published>2015-09-15T21:38:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f085344d5c4de46d0ef3e15a97ef444fd7cc3194'/>
<id>urn:sha1:f085344d5c4de46d0ef3e15a97ef444fd7cc3194</id>
<content type='text'>
Suggested by Bartosz Golaszewski.

Signed-off-by: Tito Ragusa &lt;farmatito@tiscali.it&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: make is_suffixed_with() return pointer inside string, not key.</title>
<updated>2015-08-25T19:47:33+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-08-25T19:47:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=68acc0f835360d439c65d349812b817b1ce5dc61'/>
<id>urn:sha1:68acc0f835360d439c65d349812b817b1ce5dc61</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: add is_suffixed_with() function</title>
<updated>2015-08-25T14:36:43+00:00</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartekgola@gmail.com</email>
</author>
<published>2015-08-25T14:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7448b513c84feb3fd06fc57b39f5ab450970c01e'/>
<id>urn:sha1:7448b513c84feb3fd06fc57b39f5ab450970c01e</id>
<content type='text'>
Signed-off-by: Bartosz Golaszewski &lt;bartekgola@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
