X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fwildcard.cpp;h=466f86f4354037f9ac49b2204f272f61e63cdd50;hp=c653d830cd75cce8113e5736360aa481b2e021e9;hb=359701cc948001e58e6517d88a30fe385d4e42d5;hpb=cfea748404dec5fb2f2e3310d36eeb6640f13824 diff --git a/ginac/wildcard.cpp b/ginac/wildcard.cpp index c653d830..466f86f4 100644 --- a/ginac/wildcard.cpp +++ b/ginac/wildcard.cpp @@ -3,7 +3,7 @@ * Implementation of GiNaC's wildcard objects. */ /* - * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +20,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include + #include "wildcard.h" #include "print.h" #include "archive.h" @@ -93,6 +95,8 @@ void wildcard::print(const print_context & c, unsigned level) const c.s << std::string(level, ' ') << class_name() << " (" << label << ")" << std::hex << ", hash=0x" << hashvalue << ", flags=0x" << flags << std::dec << std::endl; + } else if (is_a(c)) { + c.s << class_name() << '(' << label << ')'; } else c.s << "$" << label; }