In perl.git, the branch smoke-me/khw-macros has been created
<https://perl5.git.perl.org/perl.git/commitdiff/77c8f5429965f76fc1382d8b2258289a189eb9a4?hp=0000000000000000000000000000000000000000>
at 77c8f5429965f76fc1382d8b2258289a189eb9a4 (commit)
- Log -----------------------------------------------------------------
commit 77c8f5429965f76fc1382d8b2258289a189eb9a4
Author: Karl Williamson <[email protected]>
Date: Fri Mar 24 19:01:39 2017 -0600
locale.c: Tighten what is considered a LC variable
Things like LC_CTYPE are locale variables, but not LC_ctype nor
LC__CTYPE. Prior to this commit all were treated as locale variables.
Many platforms have more locale variables than Perl knows about, e.g.,
LC_PAPER, and the code tries to catch all possibilities.
commit ee4a1152d1436b012f2e496d47b7f4702c3a373a
Author: Karl Williamson <[email protected]>
Date: Thu Mar 9 11:53:48 2017 -0700
locale.c: White space, extra braces only
Align vertically, and indent blocks to standard. It adds braces for
clarity.
commit 06ebd5a022fcb0d9b85e39d4a5e7e02ac9a65902
Author: Karl Williamson <[email protected]>
Date: Thu Nov 2 22:16:11 2017 -0600
handy.h: Add comments
This adds a description of the naming conventions to be used for any new
string comparison macros.
commit 226266afd4265a02ffc5e1d54fe2ac4ad7356911
Author: Karl Williamson <[email protected]>
Date: Thu Nov 2 21:12:08 2017 -0600
Make new macros private
Until we decide these weren't a bad idea
commit 0a88ee67f97688fb7c64bac0cab75bcf568ff6d4
Author: Karl Williamson <[email protected]>
Date: Fri Nov 3 08:16:41 2017 -0600
ext/attributes/attributes.xs is PERL_EXT
commit 1e0f0cac52a13a8a513750353a120a684b65cd22
Author: Karl Williamson <[email protected]>
Date: Thu Mar 23 19:38:04 2017 -0600
handy.h: Make uniform the defns of strFOO
For consistency
commit c0f2d53c2e80d6aeaa9c24605487ae348f29fb38
Author: Karl Williamson <[email protected]>
Date: Thu Nov 2 21:02:25 2017 -0600
Remove _memEQs, _memNEs
All uses of these private macros have been replaced by other calls.
commit 1540739ede195ec8a4a5155454019f68f0c2b00b
Author: Karl Williamson <[email protected]>
Date: Mon Apr 24 20:39:02 2017 -0600
Add memENDPs and use it in core
This corresponds to memBEGINPs
commit a502832d2ef6e70c06383c46f91cd8b26e80bd69
Author: Karl Williamson <[email protected]>
Date: Mon Apr 24 20:27:24 2017 -0600
Add memBEGINPs() to core and use it
This macro is like memBEGINs(), but the 'P' signifies we want a proper
substring, meaning that the 2nd string parameter must not be the entire
first parameter.
commit 473af20a72b81af31601dab5bcc5dd1cf0c7c882
Author: Karl Williamson <[email protected]>
Date: Thu Nov 2 22:26:43 2017 -0600
XXX squash after testing locale.c Use memENDs
commit f4deb222dfbf55e4dfaecdbd7ba5957b43b18b54
Author: Karl Williamson <[email protected]>
Date: Mon Apr 24 20:11:40 2017 -0600
Use memENDs() in core
commit 16ecf07d10c4f6860594a042837e77eb5e2b5c15
Author: Karl Williamson <[email protected]>
Date: Mon Apr 24 20:02:57 2017 -0600
Use memBEGINs() in core
commit 9f8d853c1bb55e839e7b9d3c6d91f5d91db5b36c
Author: Karl Williamson <[email protected]>
Date: Thu Nov 2 14:03:40 2017 -0600
Change some strBEGINs() to memBEGINs()
The latter is generally faster when the length is already known.
This commit also changes a few hard-coded numbers to use sizeof().
commit 347fe6ab8f5e4b7fe5c66873ed401732cca94841
Author: Karl Williamson <[email protected]>
Date: Tue Oct 31 12:11:12 2017 -0600
Add memBEGINs(), memENDs() and use them in APItest
memBEGINs() is like strBEGINs(), but can be used for buffers without
trailing NULs. It can also be used when there is a trailing NUL, and
the length is known, as it should be somewhat faster, only having to
check for one ending condition.
Same for memENDs vs strENDs
commit cdaa30745e934895985539cc99993818286f98be
Author: Karl Williamson <[email protected]>
Date: Thu Mar 9 10:55:38 2017 -0700
Change some strncmp(), etc. to strBEGINs()
The latter is much clearer as to what's going on, and the programmer and
program reader don't have to count characters.
commit eb60ea1638fe0e1db3103e15d8b28e1a738f72c2
Author: Karl Williamson <[email protected]>
Date: Tue Oct 31 08:30:38 2017 -0600
Use memEQs, memNEs in core files
Where the length is known, we can use these functions which relieve
the programmer and the program reader from having to count characters.
The memFOO functions should also be slightly faster than the strFOO
equivalents.
In some instances in this commit, hard coded numbers are used. These
come from the 'case' statement values that apply to them.
commit 6378cc134f355e41f3f22660e990dd96d42b6e78
Author: Karl Williamson <[email protected]>
Date: Wed Mar 8 20:31:25 2017 -0700
Rename strEQs to strBEGINs; remove strNEs
The original names are confusing.
See thread beginning with
http://nntp.perl.org/group/perl.perl5.porters/244335
The two macros are mapped into just that one, complementing the result
for the few cases where strNEs was used.
-----------------------------------------------------------------------
--
Perl5 Master Repository