Changeset 787ec4 in git for Singular


Ignore:
Timestamp:
Feb 13, 2013, 4:28:39 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
251549b049519ca5f050922c948fc1e8b2c8ecc3
Parents:
f63b13007b1f6deb2ebb62306b07b450a2137832
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-13 16:28:39+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-13 20:01:57+01:00
Message:
fix: dump(ASCII): lists which contains ideals/modules

from master
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/silink.cc

    rf63b13 r787ec4  
    775775    if (rhs == NULL) return EOF;
    776776
    777     if (type_id == INTVEC_CMD) fprintf(fd, "intvec(");
     777    BOOLEAN need_klammer=FALSE;
     778    if (type_id == INTVEC_CMD) { fprintf(fd, "intvec(");need_klammer=TRUE; }
     779    else if (type_id == IDEAL_CMD) { fprintf(fd, "ideal(");need_klammer=TRUE; }
     780    else if (type_id == MODUL_CMD) { fprintf(fd, "module(");need_klammer=TRUE; }
    778781
    779782    if (fprintf(fd, "%s", rhs) == EOF) return EOF;
     
    789792      omFree(rhs);
    790793    }
    791     else if (type_id == INTVEC_CMD) fprintf(fd, ")");
     794    else if (need_klammer) fprintf(fd, ")");
    792795  }
    793796  return 1;
Note: See TracChangeset for help on using the changeset viewer.