From: brown@falam.ch (David Claude Brown)
Subject: Re: errno.h problems in DEC 'C'
Date: 1995/08/04 [thread overview]
Message-ID: <brown.314.0013C00B@falam.ch> (raw)
In-Reply-To: 3vqrg1$bem@caip.rutgers.edu
In article <3vqrg1$bem@caip.rutgers.edu> halasz@caip.rutgers.edu writes:
>In article <danpop.807407394@rscernix>, Dan.Pop@mail.cern.ch (Dan Pop) writes
>! It's all your fault. Here's the relevant part of the standard:
>!
>! 4.1.3 Errors <errno.h>
>!
>! The header <errno.h> defines several macros, all relating to the
>! reporting of error conditions.
>!
>! The macros are
>! ^^^^^^
>! EDOM
>! ERANGE
>!
>! which expand to distinct nonzero integral constant expressions; and
>!
>! errno
>!
>! which expands to a modifiable lvalue that has type int...
>! ^^^^^^^
>The standard looks wrong to me ....
>full of traps for the innocent.
The innocent would not use identifiers defined by the standard for their own
purposes even if the standard allowed them too.
Name space management is _extremely_ important (IMHO) and is one of VMS's
strengths. Perhaps the people who wrote the original 'errno' member had
been lulled by VMS into thinking that they could do no wrong (no $ => OK)
I suggest a global subsititute of '.errno' and '->errno' to a new name as a
first pass. These two strings won't show up very often (if at all) in your
programs other than in the places that you want to change them.
Claude.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vv vv David Claude Brown
||----|| * brown@falam.ch
|| | /
/\------/
(oo)
(~~)
next prev parent reply other threads:[~1995-08-04 4:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-02 4:00 errno.h problems in DEC 'C' Greg Thomas
1995-08-02 4:00 ` J. Daniel Smith
1995-08-02 4:00 ` Dan Pop
1995-08-03 4:00 ` halasz
1995-08-04 4:00 ` David Claude Brown [this message]
1995-08-04 4:00 ` Dan Pop
1995-08-02 4:00 ` Lawrence Kirby
1995-08-03 4:00 ` David Claude Brown
1995-08-03 4:00 ` Derick J.R. Qua-Gonzalez
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