Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset da5ba3a in mainline


Ignore:
Timestamp:
2014-08-28T20:47:06Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
9b3f77c
Parents:
0f2a9be
Message:

Constants can be prefixed also with '#'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autogen.py

    r0f2a9be rda5ba3a  
    128128
    129129def filter_pairs(lines):
    130         pattern = re.compile("^\tEMITTED_CONSTANT ([A-Z_][A-Z0-9_]*) = \$?([0-9]+)$");
     130        pattern = re.compile("^\tEMITTED_CONSTANT ([A-Z_][A-Z0-9_]*) = (\$|#)?([0-9]+)$");
    131131        pairs = []
    132132        for line in lines:
     
    134134                if res == None:
    135135                        continue
    136                 pairs = pairs + [res.group(1, 2)]
     136                pairs = pairs + [res.group(1, 3)]
    137137        return pairs
    138138       
Note: See TracChangeset for help on using the changeset viewer.