From: Keith Thompson <kst-u@mib.org>
Subject: Re: Ada equivalent for C-pointer?
Date: Tue, 18 Jan 2005 07:31:24 GMT
Date: 2005-01-18T07:31:24+00:00 [thread overview]
Message-ID: <lnis5v8a4c.fsf@nuthaus.mib.org> (raw)
In-Reply-To: 41EBB998.B2DFBF5C@alfred-hilscher.de
Alfred Hilscher <SPAM@alfred-hilscher.de> writes:
[...]
> Thanks to all of you. What I do is to write some bindings for a windows
> dll. The C-header looks like this: int function (far *xy); As Nick
> stated, in the flat model of windows a "far" and a "near" would be the
> same. So I will declare it as an "access" type (ev. with the "pragma
> Convention (C, C_Pointer);").
Are you sure the C declaration looks like
int function(far *xy);
? That's a syntax error even for C compilers that support "far"
pointers. It might be something like
int function(int far *xy);
Since (as I understand it) "far" doesn't mean anything on modern
systems, it's quite likely that your C compiler either ignores the
"far" keyword or a header "#define"s it as nothing.
See what your C compiler's documentation says about "far" pointers.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
prev parent reply other threads:[~2005-01-18 7:31 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-14 16:41 Ada equivalent for C-pointer? Alfred Hilscher
2005-01-14 17:00 ` Duncan Sands
2005-01-14 20:05 ` tmoran
2005-01-15 5:00 ` Brian May
2005-01-14 22:33 ` Keith Thompson
2005-01-14 23:03 ` Stephen Leake
2005-01-15 15:51 ` Nick Roberts
2005-01-15 18:54 ` tmoran
2005-01-16 1:43 ` Keith Thompson
2005-01-17 21:35 ` Randy Brukardt
2005-01-15 9:09 ` Martin Krischik
2005-01-15 16:03 ` Nick Roberts
2005-01-15 16:27 ` Pascal Obry
2005-01-15 16:50 ` Nick Roberts
2005-01-15 17:11 ` Simon Wright
2005-01-15 18:46 ` Nick Roberts
2005-01-15 17:49 ` Pascal Obry
2005-01-16 8:44 ` Martin Krischik
2005-01-16 9:58 ` Pascal Obry
2005-01-16 11:07 ` Martin Krischik
2005-01-16 8:36 ` Martin Krischik
2005-01-16 15:01 ` Niklas Holsti
2005-01-16 16:02 ` Martin Krischik
2005-01-17 15:33 ` Niklas Holsti
2005-01-16 20:39 ` Nick Roberts
2005-01-17 21:38 ` Randy Brukardt
2005-01-17 21:45 ` Pascal Obry
2005-01-17 13:11 ` Alfred Hilscher
2005-01-18 7:31 ` Keith Thompson [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox