Changeset 787ec4 in git


Ignore:
Timestamp:
Feb 13, 2013, 4:28:39 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
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.