Updated for new type handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@803 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ee6c5b717a
commit
bb547aac03
1 changed files with 20 additions and 37 deletions
|
|
@ -7,37 +7,31 @@
|
||||||
// Python specific implementation. This file is included
|
// Python specific implementation. This file is included
|
||||||
// by the file ../pointer.i
|
// by the file ../pointer.i
|
||||||
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
/* Pointer library specific types */
|
/* Types used by the library */
|
||||||
|
static swig_type_info *SWIG_POINTER_int_p = 0;
|
||||||
|
static swig_type_info *SWIG_POINTER_short_p =0;
|
||||||
|
static swig_type_info *SWIG_POINTER_long_p = 0;
|
||||||
|
static swig_type_info *SWIG_POINTER_float_p = 0;
|
||||||
|
static swig_type_info *SWIG_POINTER_double_p = 0;
|
||||||
|
static swig_type_info *SWIG_POINTER_char_p = 0;
|
||||||
|
static swig_type_info *SWIG_POINTER_char_pp = 0;
|
||||||
|
%}
|
||||||
|
|
||||||
static swig_type_info _swig_pointer_int_p[] = {{"_int_p",0},{"_int_p",0},{0}};
|
%init %{
|
||||||
static swig_type_info _swig_pointer_short_p[] = {{"_short_p",0},{"_short_p",0},{0}};
|
SWIG_POINTER_int_p = SWIG_TypeQuery("int *");
|
||||||
static swig_type_info _swig_pointer_long_p[] = {{"_long_p",0},{"_long_p",0},{0}};
|
SWIG_POINTER_short_p = SWIG_TypeQuery("short *");
|
||||||
static swig_type_info _swig_pointer_float_p[] = {{"_float_p",0},{"_float_p",0},{0}};
|
SWIG_POINTER_long_p = SWIG_TypeQuery("long *");
|
||||||
static swig_type_info _swig_pointer_double_p[] = {{"_double_p",0},{"_double_p",0},{0}};
|
SWIG_POINTER_float_p = SWIG_TypeQuery("float *");
|
||||||
static swig_type_info _swig_pointer_char_p[] = {{"_char_p",0},{"_char_p",0},{0}};
|
SWIG_POINTER_double_p = SWIG_TypeQuery("double *");
|
||||||
static swig_type_info _swig_pointer_char_pp[] = {{"_char_pp",0},{"_char_pp",0},{0}};
|
SWIG_POINTER_char_p = SWIG_TypeQuery("char *");
|
||||||
|
SWIG_POINTER_char_pp = SWIG_TypeQuery("char **");
|
||||||
|
%}
|
||||||
|
|
||||||
static swig_type_info *_swig_pointer_types[] = {
|
%{
|
||||||
_swig_pointer_int_p,
|
|
||||||
_swig_pointer_short_p,
|
|
||||||
_swig_pointer_long_p,
|
|
||||||
_swig_pointer_float_p,
|
|
||||||
_swig_pointer_double_p,
|
|
||||||
_swig_pointer_char_p,
|
|
||||||
_swig_pointer_char_pp,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
#define SWIG_POINTER_int_p _swig_pointer_types[0]
|
|
||||||
#define SWIG_POINTER_short_p _swig_pointer_types[1]
|
|
||||||
#define SWIG_POINTER_long_p _swig_pointer_types[2]
|
|
||||||
#define SWIG_POINTER_float_p _swig_pointer_types[3]
|
|
||||||
#define SWIG_POINTER_double_p _swig_pointer_types[4]
|
|
||||||
#define SWIG_POINTER_char_p _swig_pointer_types[5]
|
|
||||||
#define SWIG_POINTER_char_pp _swig_pointer_types[6]
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------
|
/*------------------------------------------------------------------
|
||||||
ptrcast(value,type)
|
ptrcast(value,type)
|
||||||
|
|
@ -622,15 +616,4 @@ void ptrmap(char *type1, char *type2);
|
||||||
// weird type-handling problems.
|
// weird type-handling problems.
|
||||||
|
|
||||||
|
|
||||||
%init %{
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
for (i = 0; _swig_pointer_types[i]; i++) {
|
|
||||||
_swig_pointer_types[i] = SWIG_TypeRegister(_swig_pointer_types[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
%}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue