Use the new common runtime function SWIG_TypePrettyName.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matthias Köppe 2004-05-06 09:55:32 +00:00
commit dbf01e8ce1

View file

@ -209,12 +209,9 @@ print_swig_aux (SCM swig_smob, SCM port, scm_print_state *pstate, const char *at
type = (swig_type_info *) SCM_CELL_WORD_2(swig_smob); type = (swig_type_info *) SCM_CELL_WORD_2(swig_smob);
if (type) { if (type) {
scm_puts((char *) "#<", port); scm_puts((char *) "#<", port);
scm_puts(attribute, port); scm_puts((char *) attribute, port);
scm_puts("swig-pointer ", port); scm_puts((char *) "swig-pointer ", port);
if (type->str != NULL) scm_puts((char *) SWIG_TypePrettyName(type), port);
scm_puts(type->str, port);
else
scm_puts(type->name, port);
scm_puts((char *) " ", port); scm_puts((char *) " ", port);
scm_intprint((long) SCM_CELL_WORD_1(swig_smob), 16, port); scm_intprint((long) SCM_CELL_WORD_1(swig_smob), 16, port);
scm_puts((char *) ">", port); scm_puts((char *) ">", port);