From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ac6f6c30c45f808a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!cyclone.southeast.rr.com!news-server.columbus.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ada equivalent for C-pointer? References: <41E7F653.2F899F47@alfred-hilscher.de> <41EBB998.B2DFBF5C@alfred-hilscher.de> From: Keith Thompson Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:YMUiAZeG+to5zp0v1P7CsgB9fjA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 18 Jan 2005 07:31:24 GMT NNTP-Posting-Host: 66.91.240.168 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1106033484 66.91.240.168 (Mon, 17 Jan 2005 23:31:24 PST) NNTP-Posting-Date: Mon, 17 Jan 2005 23:31:24 PST Organization: RoadRunner - West Xref: g2news1.google.com comp.lang.ada:7885 Date: 2005-01-18T07:31:24+00:00 List-Id: Alfred Hilscher 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 San Diego Supercomputer Center <*> We must do something. This is something. Therefore, we must do this.