Changeset 4100 for proto


Ignore:
Timestamp:
Aug 30, 2014, 6:03:28 AM (4 years ago)
Author:
cameron
Message:

Avoid generating redundant sequence_x_y definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/unicode_category_compiler.py

    r4075 r4100  
    528528           last_prefix = utf8_prefix_var(lo, byte_no - 1)
    529529           this_prefix = utf8_prefix_var(lo, byte_no)
    530            cgo.add_assignment(this_prefix, cgo.expr2py(make_and(make_shift_forward(Var(last_prefix), 1), Var(byteVar))))
     530           cgo.add_canonical_assignment(this_prefix, cgo.expr2py(make_and(make_shift_forward(Var(last_prefix), 1), Var(byteVar))))
    531531         if byte_no < utf8_length(lo): utf8_sequence_generator(p, byte_no+1, targetVar, cgo)
    532532       else:
Note: See TracChangeset for help on using the changeset viewer.