Changeset 00d2a4 in git


Ignore:
Timestamp:
Feb 20, 2013, 5:46:21 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
5602268070a5515f6c8a239a56a190a45699fcfd
Parents:
c76ff65d85851a1aa35d35a8db7408b7642e643a
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-20 17:46:21+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-20 18:58:27+01:00
Message:
Fixed the usage pattern for StringEndS
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • Singular/bigintm.cc

    rc76ff6 r00d2a4  
    2121     StringSetS("");
    2222     number n=(number)d; nlWrite(n,NULL); d=(void*)n;
    23      return omStrDup(StringEndS(""));
     23     return StringEndS();
    2424    }
    2525}
  • Singular/test.cc

    rc76ff6 r00d2a4  
    255255  StringSetS("ressources in use (as reported by feStringAppendResources(0):\n");
    256256  feStringAppendResources(0);
    257   PrintS(StringEndS("\n"));
    258 
     257  StringAppendS("\n");
     258  char * s = StringEndS();
     259  PrintS(s);
     260  omFree(s);
    259261
    260262
  • kernel/old.Poly.h

    rc76ff6 r00d2a4  
    379379     StringSetS("");
    380380     write();
    381      PrintS(StringEndS(""));
     381     { char* s = StringEndS(); PrintS(s); omFree(s); }
    382382     }*/
    383383  virtual ~PolyBase(){}
  • libpolys/coeffs/coeffWrite

    rc76ff6 r00d2a4  
    66    {
    77      StringSetS("//   minpoly        : ");
    8       nfShowMipo();PrintS(StringEndS("\n"));
     8      nfShowMipo();PrintS(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    99    }
    1010  }
     
    5858      else if (r==currRing)
    5959      {
    60         StringSetS(""); nWrite(r->minpoly); PrintS(StringEndS("\n"));
     60        StringSetS(""); nWrite(r->minpoly); PrintS(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    6161      }
    6262      else
  • libpolys/polys/OBSOLETE_pInitContent.cc

    rc76ff6 r00d2a4  
    7777        //  StringSetS("** div0:");nWrite(pGetCoeff(p));StringAppendS("/");
    7878        //  nWrite(h);StringAppendS("=");nWrite(d);StringAppendS(" int:");
    79         //  nWrite(tmp);Print(StringEndS("\n"));
     79        //  nWrite(tmp);Print(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    8080        //}
    8181        //nDelete(&tmp);
     
    447447        //  StringSetS("** div0:");nWrite(pGetCoeff(p));StringAppendS("/");
    448448        //  nWrite(h);StringAppendS("=");nWrite(d);StringAppendS(" int:");
    449         //  nWrite(tmp);Print(StringEndS("\n"));
     449        //  nWrite(tmp);Print(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    450450        //}
    451451        //nDelete(&tmp);
  • libpolys/polys/clapsing.cc

    rc76ff6 r00d2a4  
    490490        //number cn=(number)c;
    491491        //StringSetS(""); nWrite(nt); StringAppend(" ==> ");
    492         //nWrite(cn);PrintS(StringEndS("\n"));
     492        //nWrite(cn);PrintS(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    493493        //#endif
    494494      }
  • libpolys/polys/kbuckets.cc

    rc76ff6 r00d2a4  
    10841084  {
    10851085    number an = pGetCoeff(p1), bn = pGetCoeff(lm);
    1086 //StringSetS("##### an = "); nWrite(an); PrintS(StringEndS("\n"));
    1087 //StringSetS("##### bn = "); nWrite(bn); PrintS(StringEndS("\n"));
     1086//StringSetS("##### an = "); nWrite(an); PrintS(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
     1087//StringSetS("##### bn = "); nWrite(bn); PrintS(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    10881088    /* ksCheckCoeff: divide out gcd from an and bn: */
    10891089    int ct = ksCheckCoeff(&an, &bn,r->cf);
  • libpolys/polys/monomials/p_polys.cc

    rc76ff6 r00d2a4  
    21092109        //  StringSetS("** div0:");nWrite(pGetCoeff(p));StringAppendS("/");
    21102110        //  nWrite(h);StringAppendS("=");nWrite(d);StringAppendS(" int:");
    2111         //  nWrite(tmp);Print(StringEndS("\n"));
     2111        //  nWrite(tmp);Print(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    21122112        //}
    21132113        //nDelete(&tmp);
     
    24222422        //  StringSetS("** div0:");nWrite(pGetCoeff(p));StringAppendS("/");
    24232423        //  nWrite(h);StringAppendS("=");nWrite(d);StringAppendS(" int:");
    2424         //  nWrite(tmp);Print(StringEndS("\n"));
     2424        //  nWrite(tmp);Print(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    24252425        //}
    24262426        //nDelete(&tmp);
  • libpolys/polys/monomials/ring.cc

    rc76ff6 r00d2a4  
    301301//       else
    302302//       {
    303 //         StringSetS(""); n_Write(r->cf->minpoly, r); PrintS(StringEndS("\n"));
     303//         StringSetS(""); n_Write(r->cf->minpoly, r); PrintS(StringEndS("\n")); // NOTE/TODO: use StringAppendS("\n"); omFree(s);
    304304//       }
    305305//       //if (r->qideal!=NULL)
  • standalone.test/test.cc

    rc76ff6 r00d2a4  
    131131  StringSetS("ressources in use (as reported by feStringAppendResources(0):\n");
    132132  feStringAppendResources(0);
    133   PrintS(StringEndS("\n"));
     133  { StringAppendS("\n"); char* s = StringEndS(); PrintS(s); omFree(s); }
    134134  // longrat
    135135  if( simple(n_Q) )
  • standalone.test/tt.cc

    rc76ff6 r00d2a4  
    1515  StringSetS("ressources in use (as reported by feStringAppendResources(0):\n");
    1616  feStringAppendResources(0);
    17   PrintS(StringEndS("\n"));
    18 
     17   
     18  { StringAppendS("\n"); char* s = StringEndS(); PrintS(s); omFree(s); }
     19   
    1920//  // init path names etc.
    2021//  siInit(argv[0]);
Note: See TracChangeset for help on using the changeset viewer.