calling XS(function) from C

Discussion in 'Perl Misc' started by Penguinista, Nov 7, 2003.

  1. Penguinista

    Penguinista Guest

    I'm embeding perl in a C program and using swig to generate an
    interface. One of the generated functions is XS(boot_module) to
    initialize the extension functions in perl, and intended to be called
    from perl in a module bootstrap operation. In my case I want to call it
    from C code. I've gotten a kludge that to works on my system, but
    breaks on a different system. Is there a 'proper' way to make this call?
     
    Penguinista, Nov 7, 2003
    #1
    1. Advertising

  2. [A complimentary Cc of this posting was sent to
    Penguinista
    <>], who wrote in article <3fac25e8$0$22655$>:
    > I'm embeding perl in a C program and using swig to generate an
    > interface. One of the generated functions is XS(boot_module) to
    > initialize the extension functions in perl, and intended to be called
    > from perl in a module bootstrap operation. In my case I want to call it
    > from C code. I've gotten a kludge that to works on my system, but
    > breaks on a different system. Is there a 'proper' way to make this call?


    Did you look how XSLoader does it?

    Yours,
    Ilya
     
    Ilya Zakharevich, Nov 8, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    591
  2. Andreas Lagemann
    Replies:
    8
    Views:
    514
    Mike Wahler
    Jan 10, 2005
  3. tiwy
    Replies:
    0
    Views:
    457
  4. NoWonder
    Replies:
    2
    Views:
    302
    Matthias Kaeppler
    Apr 9, 2005
  5. Satish Chimakurthi

    Function calling another function

    Satish Chimakurthi, Mar 1, 2004, in forum: Python
    Replies:
    2
    Views:
    389
    Satish Chimakurthi
    Mar 1, 2004
Loading...

Share This Page