Changeset 137883e in git for Singular/ipshell.cc


Ignore:
Timestamp:
Feb 25, 2014, 2:51:01 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
76df619ea2e1d07990ab83e0f5acd9cc2ccece97
Parents:
e8f898970062b0449f9db166877f0e1811d15b63
Message:
chg: option(warn): warn if def is used to much
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    re8f898 r137883e  
    11551155  }
    11561156  leftv h=iiCurrArgs;
     1157  leftv rest=h->next; /*iiCurrArgs is not NULLi here*/
     1158  BOOLEAN is_default_list=FALSE;
    11571159  if (strcmp(p->name,"#")==0)
    11581160  {
     1161    is_default_list=TRUE;
     1162    rest=NULL;
     1163  }
     1164  else
     1165  {
     1166    h->next=NULL;
     1167  }
     1168  BOOLEAN res=iiAssign(p,h);
     1169  if (is_default_list)
     1170  {
    11591171    iiCurrArgs=NULL;
    11601172  }
    11611173  else
    11621174  {
    1163     iiCurrArgs=h->next;
    1164     h->next=NULL;
    1165   }
    1166   BOOLEAN res=iiAssign(p,h);
     1175    iiCurrArgs=rest;
     1176  }
    11671177  h->CleanUp();
    11681178  omFreeBin((ADDRESS)h, sleftv_bin);
     
    21982208    lists v=(lists)L->m[1].Data();
    21992209    R->N = v->nr+1;
    2200     if (R->N<=0) 
     2210    if (R->N<=0)
    22012211    {
    22022212      WerrorS("no ring variables");
     
    50575067      else // (0/p, a, b, ..., z)
    50585068      {
    5059         if ((ch!=0) && (ch!=IsPrime(ch)))
    5060         {
    5061           WerrorS("too many parameters");
    5062           goto rInitError;
    5063         }
     5069        if ((ch!=0) && (ch!=IsPrime(ch)))
     5070        {
     5071          WerrorS("too many parameters");
     5072          goto rInitError;
     5073        }
    50645074
    50655075        char ** names = (char**)omAlloc0(pars * sizeof(char_ptr));
     
    50745084
    50755085        extParam.r = rDefault( ch, pars, names); // Q/Zp [ p_1, ... p_pars ]
    5076         for(int i=pars-1; i>=0;i--)
    5077         {
    5078           omFree(names[i]);
    5079         }
    5080         omFree(names);
     5086        for(int i=pars-1; i>=0;i--)
     5087        {
     5088          omFree(names[i]);
     5089        }
     5090        omFree(names);
    50815091
    50825092        cf = nInitChar(n_transExt, &extParam);
     
    51585168        number p=(number)pn->next->CopyD();
    51595169        nlGMP(p,(number)modBase,coeffs_BIGINT);
    5160         nlDelete(&p,coeffs_BIGINT);
     5170        nlDelete(&p,coeffs_BIGINT);
    51615171      }
    51625172    }
Note: See TracChangeset for help on using the changeset viewer.