Re: Swig and pointers

2005-10-06 Thread Java and Swing
(reposting, i was just told how I should properly reply via groups.google.com) im sorry, why would it be md_ptr? what is md_ptr? i tried.. %include cpointer.i %pointer_functions(MY_DIGIT, digit_ptr) ptr = new_digit_ptr() doIt("a message", ptr) ...doesnt work..still needs a DIGIT ** Miki Tebek

Re: Swig and pointers

2005-10-06 Thread Java and Swing
im sorry, why would it be md_ptr? what is md_ptr? i tried.. %include cpointer.i %pointer_functions(MY_DIGIT, digit_ptr) ptr = new_digit_ptr() doIt("a message", ptr) ...doesnt work..still needs a DIGIT ** -- http://mail.python.org/mailman/listinfo/python-list

Re: Swig and pointers

2005-10-06 Thread Miki Tebeka
Hello Java, > ... > extern int doIt(char *a, MY_DIGIT **digit); > %include cpointer.i > %pointer_functions(MY_DIGIT, md_prt); Don't you mean md_ptr? > %typemap(in) (char *a, MY_DIGIT **argv) { > /* Check if is a list */ > if (PyList_Check($input)) { > int i; > $1 = PyList_Size($input)

Swig and pointers

2005-10-05 Thread Java and Swing
I've tried sending a email to the swig mailing list 3 times...but it never seems to get it...not sure what is going on, still looking into it. Until then... I now have a C function such as... int doIt(char *a, MY_DIGIT **digit) { ... } so I am trying to figure out how to pass in that "digit"