diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-06 04:46:57 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-06 04:46:57 +0000 |
commit | 456a696f72f6db1005cff419b24f20bad89078a0 (patch) | |
tree | 826c3164ac9a58647d21367768f0ea8f5435eb25 /doc/contributors.rdoc | |
parent | ce37214a458791e90ebff861d2bb25384cdeb46c (diff) | |
download | ruby-456a696f72f6db1005cff419b24f20bad89078a0.tar.gz |
remove code duplication and streamline identifiers
In regparse.c:
* Reduce coode duplication by merging the almost identical functions
create_sequence_node and create_alternate_node into a new function
create_node_from_array, adding a parameter that distinguishes between
creating a list and creating an alternative.
* Streamline variable/function naming. Unicode UAX #29 uses 'sequence', but
the regular expression library uses 'list' for the same concept. Keep
'sequence' in the ccmments that are taken from UAX #29, but use 'list'
in variable names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/contributors.rdoc')
0 files changed, 0 insertions, 0 deletions