Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "David J. Dachtera" <djesys.nospam@fsi.net>
Subject: Re: C, Sequential File Compatibility (was: Re: transferring source  files)
Date: Sat, 22 Nov 2003 12:48:59 -0600	[thread overview]
Message-ID: <3FBFAF9B.B29FC6B5@fsi.net> (raw)
In-Reply-To: aAgvb.9465$nx.8575@news.cpqcorp.net

Hoff Hoffman wrote:
> 
> In article <3FBD8926.4924131@fsi.net>, "David J. Dachtera" <djesys.nospam@fsi.net> writes:
> :paramucho wrote:
> :>
> :> On Wed, 19 Nov 2003 20:39:20 -0600, "David J. Dachtera"
> :> <djesys.nospam@fsi.net> wrote:
> :>
> :> >paramucho wrote:
> :> >>
> :> >> Formfeed, aka ctrl-L is the page separator.
> :> >
> :> >Usually tolerated by compilers, but often considered bad form. Not
> :> >recommended.
> :>
> :> Huh? I've been using it in all my source files since pre-1975 and have
> :> yet to find a compiler that doesn't accept it.
> :
> :Like I said...
> 
>   A form-feed is whitespace, and appears entirely legal within a C source
>   file per my reading of the C materials.  Large tracts of OpenVMS source
>   code certainly use form-feed characters embedded within the source
>   files; OpenVMS uses form-feeds for purposes of readability.
> 
>   For those interested, the first couple of pages of the lexicon chapter of
>   the OpenVMS C Language Reference Manual have various relevent details.
> 
>     http://www.hp.com/go/openvms/doc/

O.k. Not sure why this is getting confused, so let me try it this way:

"Usually tolerated by compilers, "

...means pretty much exactly what it says. It's a non-printable
character that the compiler may or may not ignore. Use at your own risk.

"...but often considered bad form."

...means pretty much exactly what it says. It may or may not produce
desirable or "pretty" results, since most compilers keep their own line
counters and such for formatting listings. Yes, I did see one that
output the <FF> transparently to the listing file, but ignored it's
significance. The results ranged from amusing to aggravating.

"Not recommended."

Admittedly, a statement of opinion. Should be self-explanatory, but if
you need help with it, post your questions here.

>   The discussion of file transfers over to Microsoft Windows systems almost
>   certainly involves a need to switch the sequential files to Stream or to
>   Stream LF format -- before moving the files along to the Windows platforms.
>   OpenVMS has a number of sequential file formats and record organizations,
>   and only a select few combinations are compatible with the Microsoft
>   sequential file formats and expectations.

Note also that I've seen cases where various format conversion software
(FTP, CONVERT, ZIP/UNZIP, etc.) tended treat <FF> identically to 
<CR><LF> or <LF>: as a record terminator. Never did ferret out the
cause.

Some DCL proc.'s also use <FF> for formatting ... which is weird because
some of those same proc.'s may also have escape characters embedded in
literal strings instead of using symbols or substitution. So, the
proc.'s aren't "printable", anyway.

-- 
David J. Dachtera
dba DJE Systems
http://www.djesys.com/

Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/


  reply	other threads:[~2003-11-22 18:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18 20:58 transferring source files Slavko Vorkapitch
2003-11-19  4:34 ` David J. Dachtera
2003-11-19  5:25   ` healyzh
2003-11-19  6:27     ` paramucho
2003-11-20  2:39       ` David J. Dachtera
2003-11-20  6:16         ` paramucho
2003-11-21  3:40           ` David J. Dachtera
2003-11-21  4:33             ` C, Sequential File Compatibility (was: Re: transferring source files) Hoff Hoffman
2003-11-22 18:48               ` David J. Dachtera [this message]
2003-11-23 13:30                 ` paramucho
2003-11-19 15:07     ` transferring source files jh40
2003-11-19 13:28 ` Bob Kaplow
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox