Changeset 8e11c1 in git


Ignore:
Timestamp:
May 13, 2016, 4:45:38 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
1e47945dd432f4c3814bd25b662e6c68c25b5839
Parents:
1c1d660c7201e1779c8af50b3966da3a6e5cbe7c
Message:
code cleanup: iiCheckPack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r1c1d660 r8e11c1  
    15251525void iiCheckPack(package &p)
    15261526{
    1527   if (p==basePack) return;
    1528 
    1529   idhdl t=basePack->idroot;
    1530 
    1531   while ((t!=NULL) && (IDTYP(t)!=PACKAGE_CMD) && (IDPACKAGE(t)!=p)) t=t->next;
    1532 
    1533   if (t==NULL)
    1534   {
    1535     WarnS("package not found\n");
    1536     p=basePack;
    1537   }
    1538   return;
     1527  if (p!=basePack)
     1528  {
     1529    idhdl t=basePack->idroot;
     1530    while ((t!=NULL) && (IDTYP(t)!=PACKAGE_CMD) && (IDPACKAGE(t)!=p)) t=t->next;
     1531    if (t==NULL)
     1532    {
     1533      WarnS("package not found\n");
     1534      p=basePack;
     1535    }
     1536  }
    15391537}
    15401538
Note: See TracChangeset for help on using the changeset viewer.