Description of problem: If you have a constant suffix, indent will put a space between the number and the suffix, causing a compilation syntax error. Example: double f = 3.0DF; Version-Release number of selected component (if applicable): indent-2.2.11-1.fc14.x86_64 How reproducible: Indent the following, and notice the extra space inserted: double f = 3.0DF; Steps to Reproduce: 1. 2. 3. Actual results: double f = 3.0 DF; Expected results: double f = 3.0DF; Additional info:
The "DF" suffix is non-standard extension supported by GCC or XLC to utilize decimal float representations on some PowerPC architectures.
Known decimal float suffixes are "DF", "DD", "DL" and their lower-cased variants.
All Fedoras affected.
Created attachment 519798 [details] Proposed fix Implementation of decimal float suffixes as sent to upstream.
indent-2.2.11-4.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/indent-2.2.11-4.fc16
indent-2.2.11-4.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/indent-2.2.11-4.fc15
indent-2.2.11-3.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/indent-2.2.11-3.fc14
Thanks for the quick fix. A small nitpick: austin:~$ rpm -q indent indent-2.2.11-3.fc14.x86_64 austin:~$ cat a.c 3DFOR austin:~$ indent a.c austin:~$ cat a.c 3DF OR Surely you don't want to break identifiers this way. Granted, this is not real code, but just in case... Again, thank you for the quick fix. This helps a lot.
(In reply to comment #8) > Thanks for the quick fix. A small nitpick: > > austin:~$ rpm -q indent > indent-2.2.11-3.fc14.x86_64 > austin:~$ cat a.c > 3DFOR > austin:~$ indent a.c > austin:~$ cat a.c > 3DF OR > > Surely you don't want to break identifiers this way. Granted, this is not real > code, but just in case... > Not only real code, identifiers cannot begin with digit in C and indent supports C only.
Package indent-2.2.11-4.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing indent-2.2.11-4.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/indent-2.2.11-4.fc16 then log in and leave karma (feedback).
indent-2.2.11-3.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
indent-2.2.11-4.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
indent-2.2.11-4.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.