[ruby-cvs:73368] duerst:r66267 (trunk): remove code duplication and put everything into forward order

duerst at ruby-lang.org duerst at ruby-lang.org
Fri Dec 7 16:04:00 JST 2018


duerst	2018-12-07 16:04:00 +0900 (Fri, 07 Dec 2018)

  New Revision: 66267

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66267

  Log:
    remove code duplication and put everything into forward order
    
    In file regparse.c, in function node_extended_grapheme_cluster(),
    eliminate code duplication of CRLF and '.' (any character). This
    uses the fact that both for Unicode encodings and for non-Unicode
    encodings, the first alternative is CRLF, and the last alternative
    is '.' (any character). This puts all of the pieces into forward
    order (the order of the code follows the order of the syntax
    definition).

  Modified files:
    trunk/regparse.c


More information about the ruby-cvs mailing list