Changeset 65eb96f in git for Singular/iplib.cc


Ignore:
Timestamp:
Nov 11, 2011, 5:52:53 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
9875202a2c72496bbc39676b4ca272ba4da36c09
Parents:
e6c3d1d6650b98221c24b2534d58726bcbded950
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-11-11 17:52:53+01:00
git-committer:
Martin Lee <martinlee84@web.de>2013-01-18 16:15:04+01:00
Message:
fix #383

leads to changes in
dmod.lib,finvar.lib,involut.lib,primdec.lib,sheafcoh.lib
still to be fixed: modstd.lib,primitiv.lib,hnoether.lib,zeroset.lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    re6c3d1 r65eb96f  
    298298  newBuffer( omStrDup(p /*pi->data.s.body*/), t /*BT_proc*/,
    299299               pi, l );
     300  int save1=(si_opt_1 & ~TEST_RINGDEP_OPTS);
     301  int save2=si_opt_2;
    300302  BOOLEAN err=yyparse();
    301303  if (sLastPrinted.rtyp!=0)
    302304  {
    303305    sLastPrinted.CleanUp();
     306  }
     307  int save11= ( si_opt_1 & ~TEST_RINGDEP_OPTS);
     308  if ((TEST_V_ALLWARN) &&
     309  (t==BT_proc) &&
     310  ((save1!=save11)||(save2!=si_opt_2)) &&
     311  (pi->libname!=NULL) && (pi->libname[0]!='\0'))
     312  {
     313    struct soptionStruct
     314    {
     315      const char * name;
     316      unsigned   setval;
     317      unsigned   resetval;
     318    };
     319    extern struct soptionStruct optionStruct[];
     320    extern struct soptionStruct verboseStruct[];
     321    Warn("option changed in proc %s from %s",pi->procname,pi->libname);
     322    int i;
     323    for (i=0; optionStruct[i].setval!=0; i++)
     324    {
     325      if ((optionStruct[i].setval & save11)
     326      && (!(optionStruct[i].setval & save1)))
     327      {
     328          Print(" +%s",optionStruct[i].name);
     329      }
     330      if (!(optionStruct[i].setval & save11)
     331      && ((optionStruct[i].setval & save1)))
     332      {
     333          Print(" -%s",optionStruct[i].name);
     334      }
     335    }
     336    for (i=0; verboseStruct[i].setval!=0; i++)
     337    {
     338      if ((verboseStruct[i].setval & si_opt_2)
     339      && (!(verboseStruct[i].setval & save2)))
     340      {
     341          Print(" +%s",verboseStruct[i].name);
     342      }
     343      if (!(verboseStruct[i].setval & si_opt_2)
     344      && ((verboseStruct[i].setval & save2)))
     345      {
     346          Print(" -%s",verboseStruct[i].name);
     347      }
     348    }
     349    PrintLn();
     350  //  PrintS(p);
    304351  }
    305352  return err;
Note: See TracChangeset for help on using the changeset viewer.