Changeset 73c359d in git for Singular/newstruct.cc


Ignore:
Timestamp:
Oct 23, 2013, 2:10:59 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
040c71d18cf1ceef3eb6c497dc0b85f8df249d4f
Parents:
41fbbadb86a5bd263ef892fae3804a80084aaa48
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-10-23 14:10:59+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-10-23 14:14:54+02:00
Message:
fix: printing of newstruct
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/newstruct.cc

    r41fbba r73c359d  
    9898          StringAppendS("<list>");
    9999        }
    100         else
     100        else if (l->m[a->pos].rtyp<=MAX_TOK)
    101101        {
    102102          char *tmp2=omStrDup(l->m[a->pos].String());
    103103          if ((strlen(tmp2)>80)||(strchr(tmp2,'\n')!=NULL))
    104104          {
    105             StringAppend("<%s>",Tok2Cmdname(l->m[a->pos].rtyp));
     105            StringAppendS("<");
     106            StringAppendS(Tok2Cmdname(l->m[a->pos].rtyp));
     107            StringAppendS(">");
    106108          }
    107109          else StringAppendS(tmp2);
    108110          omFree(tmp2);
    109111        }
     112        else
     113        {
     114          StringAppendS("<");
     115          StringAppendS(Tok2Cmdname(l->m[a->pos].rtyp));
     116          StringAppendS(">");
     117        }
     118
    110119      }
    111120      else StringAppendS("??");
Note: See TracChangeset for help on using the changeset viewer.