This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newb question about code style


sashan wrote:

Ok thanks that makes a difference. I still don't understand the mixing of tabs and spaces though. The gnu website seems to be down so I can't read http://www.gnu.org/prep/standards_toc.html.
a tab is a character which moves to the next multiple of 8. do not abuse
that by trying a different spacing. usually, tabs are used to get to the
rightmost multiple of 8, and then (pairs of) spaces to get further right.

Why the original *fixed* *width* ASCII character set has a character whose
width is not only different, but depends on where it is, is one of those
things. (Of course Knuth would question why have a character code for a
character with no glyph.)

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]