Rev 8958 | Rev 8963 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8958 | Rev 8961 | ||
---|---|---|---|
Line 1644... | Line 1644... | ||
1644 | value = "" |
1644 | value = "" |
1645 | while r.curr() != ';' and r.curr() != '' and r.curr() != '\n': |
1645 | while r.curr() != ';' and r.curr() != '' and r.curr() != '\n': |
1646 | value += r.step() |
1646 | value += r.step() |
1647 | # Skip spaces after the value |
1647 | # Skip spaces after the value |
1648 | r.skip_spaces() |
1648 | r.skip_spaces() |
1649 | # Read a comment if any |
1649 | # Read till end of the line to get a comment from the reader |
1650 | comment = '' |
- | |
1651 | if r.curr() == ';': |
- | |
1652 | # Skip the ';' |
- | |
1653 | r.step() |
- | |
1654 | # Read the comment |
- | |
1655 | while r.curr() != '': |
1650 | while r.curr() != '': |
1656 | comment += r.step() |
1651 | r.step() |
1657 | # Postprocess type |
1652 | # Build the result |
1658 | return AsmVariable(location, name, r.comment, var_type, value) |
1653 | return AsmVariable(location, name, r.comment, var_type, value) |
Line 1659... | Line 1654... | ||
1659 | 1654 | ||
1660 | def parse_after_struct(r, as_union = True): |
1655 | def parse_after_struct(r, as_union = True): |
1661 | global warnings |
1656 | global warnings |