Skip to content

Commit 0307d07

Browse files
committed
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.
1 parent b15fed7 commit 0307d07

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

Examples/test-suite/argcargvtest.i

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
%module argcargvtest
22

3+
#if !defined(SWIGCSHARP) && !defined(SWIGD) && !defined(SWIGGO) && !defined(SWIGGUILE) && !defined(SWIGJAVA) && !defined(SWIGJAVASCRIPT) && !defined(SWIGMZSCHEME) && !defined(SWIGOCTAVE) && !defined(SWIGR) && !defined(SWIGSCILAB)
34
%include <argcargv.i>
45

56
%apply (int ARGC, char **ARGV) { (size_t argc, const char **argv) }
7+
#endif
68

79
%inline %{
810

Lib/perl5/argcargv.i

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
* --- Argc & Argv ---
33
* ------------------------------------------------------------ */
44

5-
%typemap(default) (int ARGC, char **ARGV) {
6-
$1 = 0; $2 = NULL;
7-
}
8-
95
%typemap(in) (int ARGC, char **ARGV) {
106
int i;
117
I32 len;

Lib/php/argcargv.i

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
* --- Argc & Argv ---
33
* ------------------------------------------------------------ */
44

5-
%typemap(default) (int ARGC, char **ARGV) {
6-
$1 = 0; $2 = NULL;
7-
}
8-
95
%typemap(in) (int ARGC, char **ARGV) {
106
int len, i;
117
zval *val;

Lib/tcl/argcargv.i

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
* --- Argc & Argv ---
33
* ------------------------------------------------------------ */
44

5-
%typemap(default) (int ARGC, char **ARGV) {
6-
$1 = 0; $2 = NULL;
7-
}
8-
95
%typemap(in) (int ARGC, char **ARGV) {
106
int i, nitems;
117
Tcl_Obj **listobjv;

0 commit comments

Comments
 (0)