Repository navigation
Commit 9db6bfd
committed
Ignore whitespace at the end of a macro replacement list when stringifying
The last token of an expansion got whitespaceahead from the newline or
comment after the replacement list. Use the whitespace after the macro
call instead. 'xstr(MAJOR.MINOR)' with '#define MAJOR 1/*major*/' now
gives "1.2", and 'xstr(F(a)b)' gives "ab".1 parent 2e16061 commit 9db6bfd
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2191 | 2191 | | |
2192 | 2192 | | |
2193 | 2193 | | |
2194 | | - | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
2195 | 2202 | | |
2196 | 2203 | | |
2197 | 2204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1756 | 1756 | | |
1757 | 1757 | | |
1758 | 1758 | | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
1759 | 1783 | | |
1760 | 1784 | | |
1761 | 1785 | | |
| |||
4862 | 4886 | | |
4863 | 4887 | | |
4864 | 4888 | | |
| 4889 | + | |
4865 | 4890 | | |
4866 | 4891 | | |
4867 | 4892 | | |
| |||
0 commit comments