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:
William S Fulton 2022-05-15 18:21:59 +01:00
commit 0307d0732c
4 changed files with 2 additions and 12 deletions

View file

@ -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 %{

View file

@ -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;

View file

@ -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;

View file

@ -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;