Typemaps for (int ARGC, char **ARGV) fixup
The default typemap should not be in this library file - this is for users to add in if they want C default argument support.
This commit is contained in:
parent
b15fed7d2d
commit
0307d0732c
4 changed files with 2 additions and 12 deletions
|
|
@ -1,8 +1,10 @@
|
|||
%module argcargvtest
|
||||
|
||||
#if !defined(SWIGCSHARP) && !defined(SWIGD) && !defined(SWIGGO) && !defined(SWIGGUILE) && !defined(SWIGJAVA) && !defined(SWIGJAVASCRIPT) && !defined(SWIGMZSCHEME) && !defined(SWIGOCTAVE) && !defined(SWIGR) && !defined(SWIGSCILAB)
|
||||
%include <argcargv.i>
|
||||
|
||||
%apply (int ARGC, char **ARGV) { (size_t argc, const char **argv) }
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
* --- Argc & Argv ---
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
%typemap(default) (int ARGC, char **ARGV) {
|
||||
$1 = 0; $2 = NULL;
|
||||
}
|
||||
|
||||
%typemap(in) (int ARGC, char **ARGV) {
|
||||
int i;
|
||||
I32 len;
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
* --- Argc & Argv ---
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
%typemap(default) (int ARGC, char **ARGV) {
|
||||
$1 = 0; $2 = NULL;
|
||||
}
|
||||
|
||||
%typemap(in) (int ARGC, char **ARGV) {
|
||||
int len, i;
|
||||
zval *val;
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
* --- Argc & Argv ---
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
%typemap(default) (int ARGC, char **ARGV) {
|
||||
$1 = 0; $2 = NULL;
|
||||
}
|
||||
|
||||
%typemap(in) (int ARGC, char **ARGV) {
|
||||
int i, nitems;
|
||||
Tcl_Obj **listobjv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue