Use the nice type name for printing pointer objects.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7d4ec03048
commit
887d79cae3
2 changed files with 2 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ void SWIG_Guile_RegisterTypes(_swig_type_info **table)
|
|||
_swig_type_info *type = *table;
|
||||
char *origname = type->name;
|
||||
/* Register datatype itself and store pointer back */
|
||||
type->tag = SWIG_RegisterType(origname, NULL /* FIXME: prettyname */);
|
||||
type->tag = SWIG_RegisterType(origname, type->str);
|
||||
/* Register compatible types */
|
||||
for (type++; type->name; type++)
|
||||
SWIG_RegisterMapping(origname, type->name, type->converter);
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ typedef struct SwigPtrType SwigPtrType;
|
|||
typedef struct _swig_type_info {
|
||||
char *name;
|
||||
void *(*converter)(void *);
|
||||
char *str;
|
||||
size_t tag;
|
||||
} _swig_type_info;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue