discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: ^L in source (was Re: wrong line endings in a gnustep file)


From: Gregory John Casamento
Subject: Re: OT: ^L in source (was Re: wrong line endings in a gnustep file)
Date: Sat, 23 Aug 2003 08:52:48 -0700 (PDT)

--- Eric Christopherson <rakko@charter.net> wrote:
> On Fri, Aug 22, 2003 at 10:58:16PM -0700, Gregory John Casamento wrote:
> > --- Riccardo Mottola <multix@ngi.it> wrote:
> > > Hello
> > > 
> > > gui/Tools/gsnd/portaudio/pa_common/portaudio.h
> > > 
> > > has wrong line endings, I see ^M overall when opening it with VI (or
> using
> > > cat -v).
> > > Yes I did a clean checkout and other files are OK, so this one is bad.
> > > 
> > > and yes, it happens on another platform too.
> > 
> > Sounds like it might have been saved at some point with a DOS/Windows
> editor.
> 
> Only somewhat relatedly, I've been wondering about some source code I've seen
> that has ^L (i.e. ctrl-L, ASCII 12) in it. I've seen it in some of the
> GNUstep sources but also some other projects' code. What does it do in a C
> source file? Does the compiler (or preprocessor) just ignore it?

Formfeed ^L is ignored by the compiler.  It's usually placed in the code when
the author wants the printer to force a new page after a particular portion of 
code.

=====
Gregory John Casamento
-- bheron on #gnustep, #linuxstep, & #gormtalk ----------------
Please sign the petition against software patents at:
http://www.petitiononline.com/pasp01/petition.html
Petition to make Lighthouse Application Suite Free Software at:
http://www.petitiononline.com/laafs/petition.html
--- Main Developer of Gorm (featured in April Linux Journal) ---

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]