http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1708
------- Comment #3 from jeff.morriss@xxxxxxxxxxx 2007-07-26 14:50 GMT -------
(In reply to comment #2)
> ^M is a carriage return, not a line feed (line feed is ^J).
Doh! Good point. Never understood why the stupid things existed in the first
place--they only make my life more difficult. (Yes, I understand that back in
the days of typewriters you might not line feed after a carriage return, but
come on...)
> So I'm not sure how the heck this would be happening. The first line it
> complains about is
>
> #ifndef __PACKET_BER_H__
>
> and, at least on my UN*X box, there are two white space characters on that line
> - a space after #ifndef, and an LF at the end of the line, so I can't see what
> Sun C has to complain about.
In fact I wasn't sure if the Sun compiler would complain about LF^H^HCR's so I
tested it:
1 #ifdef FOO^M
2 #define BAR^M
3 #endif^M
otto [~/]> cc foo.c
"foo.c", line 1: warning: invalid white space character in directive
"foo.c", line 3: warning: invalid white space character in directive
[...]
so I'm pretty sure at least those warnings come from the CR's.
--
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.