Changeset da5ba3a in mainline


Ignore:
Timestamp:
2014-08-28T20:47:06Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.