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:
Matthias Köppe 2000-08-30 15:48:43 +00:00
commit 887d79cae3
2 changed files with 2 additions and 1 deletions

View file

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

View file

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