#230 %apply not working in some situations

closed-later
parsing (147)
2
2003-11-28
2002-11-14
No

I've just noticed that in the code I'm working on, this
works:

%apply (oid *, size_t) { (const oid *objid, size_t
objidlen) };

, while this doesn't work:

%apply (oid *, size_t) { (const oid *, size_t) };

I'm not sure if it should, but reading the
documentation, I'd expect it to work.

Thank you!

Discussion

  • David M. Beazley

    Logged In: YES
    user_id=7557

    Multi-argument typemaps are a very special case in SWIG.
    The typemaps have to *exactly* match the target arguments
    to work correctly. Therefore, I'm not too surprised that
    the second case doesn't work.

    It might be possible to improve this, but I don't
    think it will be easy.

     
  • David M. Beazley

    • labels: --> parsing
    • priority: 5 --> 2
    • assigned_to: nobody --> beazley
    • status: open --> open-later
     
  • David M. Beazley

    • status: open-later --> closed-later
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks