Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jeff Sullivan <jps@zk3.dec.com>
Subject: Re: reserved word "readonly" in DEC C
Date: 1999/02/22	[thread overview]
Message-ID: <36D1DFA5.F1CB343B@zk3.dec.com> (raw)
In-Reply-To: 7anks0$mju$1@node2.nodak.edu

Yes, DEC C provides support for the storage-class modifier readonly,
which is a VAX C keyword. I found a description in section 2.11 or
the DEC C Language Reference Manual.

The fact that it was recognised as a keyword in -std mode for
the DEC C compiler in V4.0D is a feature or a bug, based on your
perspective. The feature/bug is not in the compiler for V4.0F
and later in the -std mode. Admittedly, more users considered
this a bug than a feature...

You could workaround it by adding -Dreadonly=_readonly to your
command line. This essentially is the same as doing this in the
code, prior to the use of readonly:

#define readonly _readonly

Let me know if you need more info.

Thanks,
-Jeff

-- 
Jeff Sullivan | Compaq Computer Corp  |   mailto:jps@zk3.dec.com
DEC C and C++ | Nashua, NH  ZK3-2/X29 | Jeff.Sullivan@compaq.com



  reply	other threads:[~1999-02-22  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-21  5:00 reserved word "readonly" in DEC C Tim Mooney
1999-02-22  5:00 ` Jeff Sullivan [this message]
1999-02-22  5:00   ` Tim Mooney
1999-02-23  5:00     ` John Parks
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