Hello everybody.

In 

http://www.xray.mpe.mpg.de/mailing-lists/vmsperl/2000-02/msg00077.html

I described this problem (name duplication, because link-time global names under VMS 
are 
converted to upper-case), and outlined 2 possible solutions. I now know, that my 
suggested solution 1
will work, but it has the annoying drawback, that the names will have to change.

Nick suggested a third possibility:

>Another Solution might be to make the XS functions "static".

I've now tried this but:

If (in EVENT.XS) I write

static int
Const_READABLE()

xsubpp generates the following C-code

XS(XS_Tk__Event__IO_READABLE)
[snip]
        RETVAL = ::Const_READABLE();
[snip]

which the C-compiler obviously doesn't like.


If I write 

static
int
Const_READABLE()

I get

Error: Cannot parse function definition from 'int' in event.xs, line 1069

from xsubpp

(I can't decide which one is worse).

Am I supposed to do something else to make the 
declaration of XS_Tk__Event__IO_READABLE static,
or have I stumbled into an actual bug?

    Best regards
    Jesper Naur


Reply via email to