In article <Jy*******************@news-server.bigpond.net.au>, Kayle wrote:
For preservation of indentation when moving the C source file from Windows
to Linux machine, what is the advice to format the code.
Should the code formatted using spaces instead of tabs?
When opened using nedit in Linux, the indentation was not preserved, or
should we limit the length of each line ?
Any advice on this ? Thanks
[off-topic]
The formatting of the code has no impact on the functionality
of the program. The indentation should be such that the code
is readable, but whether you use tabs or spaces (or, like me, a
mix of them) is not important unless you're working in a group
with weird formatting requierments. Hmmm... regarding the line
length. The line length is not really important either. Keep
it short to increase readability.
Consult system specific groups for questions regarding porting
non-standard functionality.
[on-topic]
A standard related question for the group: I'm reading the
rationale for section 7.19.2, which says that C99 increased the
minimum maximum line length from 254 to 4095, but the standard
itself says in 7.19.2 ("Streams") nothing about 4095... Is there
a mismatch here between the standard and the rationale?
I'm not sure this has anything to do with the length of lines in
a program source. Does it?
--
Andreas Kähäri