Changeset 5b32a1 in git for Singular


Ignore:
Timestamp:
Jan 18, 2013, 6:45:36 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1f1fb0ae2d0228deb0e78489ca037165df05672b
Parents:
95c8260b23a2326800f3f5fa9092330787e39d7a271d25946dbb409d16650bb1ecdffccf0c03594e
Message:
Merge branch 'spielwiese' into sw_fix

* spielwiese:
  fix: warning for option changes does not work for libsingular

Conflicts:
	Singular/iplib.cc
Location:
Singular
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/dmod.lib

    r271d25 r5b32a1  
    17211721  dbprint(ppl-1, @R4);
    17221722  ideal K4 = imap(@R2,K2);
     1723  intvec saveopt=option(get);
    17231724  option(redSB);
    17241725  dbprint(ppl,"// -3-2- the final cosmetic std");
     
    17311732  ideal LD = K4;
    17321733  export LD;
     1734  option(set,saveopt);
    17331735  return(@R4);
    17341736}
  • Singular/LIB/finvar.lib

    r271d25 r5b32a1  
    64626462  int dgb=degBound;
    64636463  degBound = 0;
     6464  intvec saveopt=option(get);
    64646465  option(redSB);
    64656466  ideal sP = groebner(ideal(P));
  • Singular/iparith.cc

    r271d25 r5b32a1  
    45424542{
    45434543  res->data=ipNameList(((ring)v->Data())->idroot);
     4544  return FALSE;
     4545}
     4546static BOOLEAN jjNAMES_I(leftv res, leftv v)
     4547{
     4548  res->data=ipNameListLev((IDROOT),(int)(long)v->Data());
    45444549  return FALSE;
    45454550}
  • Singular/ipid.cc

    r271d25 r5b32a1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
     4
    45/*
    56* ABSTRACT: identfier handling
     
    519520}
    520521
     522lists ipNameListLev(idhdl root, int lev)
     523{
     524  idhdl h=root;
     525  /* compute the length */
     526  int l=0;
     527  while (h!=NULL) { if (IDLEV(h)==lev) l++; h=IDNEXT(h); }
     528  /* allocate list */
     529  lists L=(lists)omAllocBin(slists_bin);
     530  L->Init(l);
     531  /* copy names */
     532  h=root;
     533  l=0;
     534  while (h!=NULL)
     535  {
     536    if (IDLEV(h)==lev)
     537    {
     538      /* list is initialized with 0 => no need to clear anything */
     539      L->m[l].rtyp=STRING_CMD;
     540      L->m[l].data=omStrDup(IDID(h));
     541      l++;
     542    }
     543    h=IDNEXT(h);
     544  }
     545  return L;
     546}
     547
    521548/*
    522549* move 'tomove' from root1 list to root2 list
  • Singular/ipid.h

    r271d25 r5b32a1  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
     6
    67/*
    78* ABSTRACT: identfier handling
     
    9899void  killhdl2(idhdl h, idhdl * ih, ring r);
    99100lists ipNameList(idhdl root);
     101lists ipNameListLev(idhdl root, int lev);
    100102void  ipMoveId(idhdl h);
    101103BOOLEAN checkPackage(package pack);
  • Singular/iplib.cc

    r95c826 r5b32a1  
    311311  #ifndef LIBSINGULAR
    312312  // see below:
    313   int save1=(si_opt_1 & ~TEST_RINGDEP_OPTS);
    314   int save2=si_opt_2;
     313  BITSET save1=(test & ~TEST_RINGDEP_OPTS);
     314  BITSET save2=verbose;
    315315  #endif
    316316  BOOLEAN err=yyparse();
     
    322322  // the access to optionStruct and verboseStruct do not work
    323323  // on x86_64-Linux for pic-code
    324   int save11= ( si_opt_1 & ~TEST_RINGDEP_OPTS);
     324  BITSET save11= ( test & ~TEST_RINGDEP_OPTS);
    325325  if ((TEST_V_ALLWARN) &&
    326326  (t==BT_proc) &&
    327   ((save1!=save11)||(save2!=si_opt_2)) &&
     327  ((save1!=save11)||(save2!=verbose)) &&
    328328  (pi->libname!=NULL) && (pi->libname[0]!='\0'))
    329329  {
     
    345345    for (i=0; verboseStruct[i].setval!=0; i++)
    346346    {
    347       if ((verboseStruct[i].setval & si_opt_2)
     347      if ((verboseStruct[i].setval & verbose)
    348348      && (!(verboseStruct[i].setval & save2)))
    349349      {
    350350          Print(" +%s",verboseStruct[i].name);
    351351      }
    352       if (!(verboseStruct[i].setval & si_opt_2)
     352      if (!(verboseStruct[i].setval & verbose)
    353353      && ((verboseStruct[i].setval & save2)))
    354354      {
     
    357357    }
    358358    PrintLn();
    359   //  PrintS(p);
    360359  }
    361360  #endif
  • Singular/ipshell.cc

    r271d25 r5b32a1  
    12791279  idhdl h=(idhdl)v->data;
    12801280  //Print("iiInternalExport('%s',%d)%s\n", v->name, toLev,"");
    1281   if (IDLEV(h)==0) Warn("`%s` is already global",IDID(h));
     1281  if (IDLEV(h)==0)
     1282  {
     1283    if (!BVERBOSE(V_REDEFINE)) Warn("`%s` is already global",IDID(h));
     1284  }
    12821285  else
    12831286  {
     
    14381441        if ((pack==currPack) && (old==(idhdl)v->data))
    14391442        {
    1440           Warn("`%s` is already global",IDID(old));
     1443          if (!BVERBOSE(V_REDEFINE)) Warn("`%s` is already global",IDID(old));
    14411444          break;
    14421445        }
  • Singular/table.h

    r271d25 r5b32a1  
    189189,{D(jjMSTD),       MSTD_CMD,        LIST_CMD,       MODUL_CMD     , NO_PLURAL |ALLOW_RING}
    190190,{D(jjNAMEOF),     NAMEOF_CMD,      STRING_CMD,     ANY_TYPE      , ALLOW_PLURAL |ALLOW_RING}
     191,{D(jjNAMES_I),    NAMES_CMD,       LIST_CMD,       INT_CMD       , ALLOW_PLURAL |ALLOW_RING}
    191192,{D(jjNAMES),      NAMES_CMD,       LIST_CMD,       PACKAGE_CMD   , ALLOW_PLURAL |ALLOW_RING}
    192193,{D(jjNAMES),      NAMES_CMD,       LIST_CMD,       RING_CMD      , ALLOW_PLURAL |ALLOW_RING}
Note: See TracChangeset for help on using the changeset viewer.