Asmname Directive_(re)

Mon, 21 Oct 96 12:38:32 CST


On Sun, 20 Oct 96 22:30:09 -0400, 
Kevin A. Foss   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


J.J. van der Heijden (j.j.vanderheijden@student.utwente.nl)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es