comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@home.com>
Subject: Re: type Foo_ptr in new void*;
Date: Sun, 05 Aug 2001 02:27:20 GMT
Date: 2001-08-05T02:27:20+00:00	[thread overview]
Message-ID: <3B6CAF0C.F9622FFE@home.com> (raw)
In-Reply-To: lgMa7.1810$1p1.135991@bgtnsc04-news.ops.worldnet.att.net

David Thompson wrote:
> Darren New <dnew@san.rr.com> wrote :
> ...
> Actually writing different definitions in two different sources
> is fairly obvious, but there are subtler ways to screw up.
> One is to change the definition in a .h file and recompile
> some but not all of the .c's that use it; tools like make
> help with this.  Another is to have two same-named .h files
> in different directories/subtrees and select a wrong one.
> A third is to actually include the correct and same .h
> but it in turn uses #define's which are set differently
> (a coworker recently lost several days to that last;
> even a full de novo build doesn't catch or fix it).

Another way to have this happen, is to have a "private"
definition as the "proper type" which is used internally
by the library, and an incorrect "opaque type" defined 
for public use. Or, this may have been correctly (but not
portably) defined, but did not port correctly to the 
new platform.

-- 
Warren W. Gay VE3WWG
http://members.home.net/ve3wwg



  reply	other threads:[~2001-08-05  2:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-29  4:31 type Foo_ptr in new void*; Tomasz Wegrzanowski
2001-07-29  5:56 ` tmoran
2001-07-29  8:57   ` Tomasz Wegrzanowski
2001-07-29 12:26     ` Marc A. Criley
2001-07-30  1:05       ` Tomasz Wegrzanowski
2001-07-30  1:20         ` tmoran
2001-07-30  2:09         ` James Rogers
2001-07-30  2:36           ` Warren W. Gay VE3WWG
2001-07-30  3:10             ` James Rogers
2001-07-31  2:14               ` Warren W. Gay VE3WWG
2001-07-31  1:21           ` Tomasz Wegrzanowski
2001-07-31  3:06             ` James Rogers
2001-07-31  5:02               ` Warren W. Gay VE3WWG
2001-07-31  7:22               ` Florian Weimer
2001-07-31  4:56           ` Darren New
2001-08-04  6:05             ` David Thompson
2001-08-05  2:27               ` Warren W. Gay VE3WWG [this message]
2001-07-29 13:40     ` Dale Stanbrough
2001-07-29 14:12 ` Florian Weimer
replies disabled

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