Changeset 7df5dbe in git


Ignore:
Timestamp:
Sep 15, 2014, 6:30:00 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
Children:
9ee58600ea602eefc9da288c53b6bd382fe6dc4f
Parents:
5faa0e147458dacf2fbe178a3ebe9b2d0957424b
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-09-15 18:30:00+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-09-15 18:33:25+02:00
Message:
fix: tr.#643
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r5faa0e1 r7df5dbe  
    20962096{
    20972097  int i,j;
    2098   for(i=0;i<R->N-1;i++)
    2099   {
    2100     for(j=i+1;j<R->N;j++)
    2101     {
    2102       if (strcmp(R->names[i],R->names[j])==0)
    2103       {
    2104         Warn("name conflict var(%d) and var(%d): `%s`, rename to `@(%d)`",i+1,j+1,R->names[i],j+1);
    2105         omFree(R->names[j]);
    2106         R->names[j]=(char *)omAlloc(10);
    2107         sprintf(R->names[j],"@(%d)",j+1);
    2108       }
    2109     }
    2110   }
     2098  BOOLEAN ch;
     2099  do
     2100  {
     2101    ch=0;
     2102    for(i=0;i<R->N-1;i++)
     2103    {
     2104      for(j=i+1;j<R->N;j++)
     2105      {
     2106        if (strcmp(R->names[i],R->names[j])==0)
     2107        {
     2108          ch=TRUE;
     2109          Warn("name conflict var(%d) and var(%d): `%s`, rename to `@%s`",i+1,j+1,R->names[i],R->names[i]);
     2110          omFree(R->names[j]);
     2111          R->names[j]=(char *)omAlloc(2+strlen(R->names[i]));
     2112          sprintf(R->names[j],"@%s",R->names[i]);
     2113        }
     2114      }
     2115    }
     2116  }
     2117  while (ch);
    21112118  for(i=0;i<rPar(R); i++)
    21122119  {
Note: See TracChangeset for help on using the changeset viewer.