|
Re: Java char *INOUT doesn't OUT: msg#00145programming.swig
Gary Nissen wrote: Hi, SWIG wraps char* as a string, that is well documented. To change the behaviour of char* to a pointer to an in/out single char character, apply the 'signed char *' typemaps. %include "typemaps.i" %apply signed char *INOUT {char *pnum}; %typemap(freearg) char *pnum ""; void foo(char *pnum); Unfortunately the default char* typemaps require a freearg typemap and this is still picked up, thus the extra typemap above to clear the freearg typemap. I'll change this so it won't be necessary in the future. William _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: complex output argument: 00145, William S Fulton |
|---|---|
| Next by Date: | Supplying default OUTPUT values: 00145, Cory Omand |
| Previous by Thread: | Java char *INOUT doesn't OUTi: 00145, Gary Nissen |
| Next by Thread: | Re: Java char *INOUT doesn't OUT: 00145, Gary Nissen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |