From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a16aa11e8df4d689 X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: reserved word "readonly" in DEC C Date: 1999/02/22 Message-ID: <36D1DFA5.F1CB343B@zk3.dec.com>#1/1 X-Deja-AN: 447259665 Content-Transfer-Encoding: 7bit References: <7anks0$mju$1@node2.nodak.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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