Issue Details (XML | Word | Printable)

Key: PCC-87
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Anders Magnusson
Reporter: Detlef Riekenberg
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

cpp failed with error: fastscan

Created: 22/Aug/09 11:53 AM   Updated: 23/Aug/09 02:24 PM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File ignore_cr.diff (0.5 kB)
2. File lcms.c (0.6 kB)
3. File token_crlf.diff (0.8 kB)

Environment: i386-linux

 Description  « Hide
pcc failed with the attached testcase:

$ pcc -c lcms.c
lcms.c:18: error: fastscan

By by ... Detlef

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Detlef Riekenberg added a comment - 22/Aug/09 11:23 PM
Proposed patch to ignore DOS line endings

By by ... Detlef

Joey Adams added a comment - 23/Aug/09 03:03 AM
Here's an alternative patch which should accept the following line formats:

"\n" Unix
"\r" Mac OS Classic
"\r\n" DOS/Windows
"\n\r" I don't know. It's easier to code this way.

I really don't know anything about the PCC architecture, nor do I have it installed on my system, so I don't know if there are other side effects to consider. This is just the technique I use to support multiple return formats. Hope it helps :)

Anders Magnusson added a comment - 23/Aug/09 02:23 PM
Fixed, but in a different way.

Anders Magnusson added a comment - 23/Aug/09 02:24 PM
Thanks for reporting this bug!