GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #259

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Jan-Jaap van der Heijden
Subject: Asmname Directive
Date: 21 Oct 1996, 12:38:32

On Sun, 20 Oct 96 22:30:09 -0400, 
Kevin A. Foss  <kfoss@atlsysnet.com> wrote:

>Hello,
>
>I am having trouble getting gpc to call external function names the way I
>would like.  According to builtin.texi, there is a directive called 'Asmname'
>which should allow for case sensitive function names. 
>
>However when I declare:
>
>function WinInitialize(fsoptions : u_long) : u_long; Asmname;
>[u_long is a type defined elsewhere]
>
>gpc responds with a parse error on the line.  What is the correct format for
>using the 'Asmname' directive? -- I couldn't find it mentioned anywhere else
>in the docs.
>
>Using C or EXTERN in place of Asmname it produces calls to _wininitialize or
>_Wininitialize, neither of which I want.
>

You must give asmname an argument -- the name you would like to have in the 
object code. So, if you would like to have '_MyMixedCaseName', you do:

    function MyMixedCaseName: integer; asmname 'MyMixedCaseName';

It also allows this:

    function MyOtherName: integer; asmname 'MyMixedCaseName';

Hope this helps,

JanJaap

---
"Nothing shocks me, I'm a scientist", Indiana Jones

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).