Changeset 2b7f4e in git


Ignore:
Timestamp:
Aug 12, 2011, 8:34:32 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
e7e815050f6c74d4fc691c162a9a76687b36c5c3
Parents:
3da9f4eecf506fa238a5377a07d73051db6ceb9b
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-12 20:34:32+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:30:46+01:00
Message:
FIX: rDefault(const char*) - returns a handle... moved to ipshell
CHG: minor changes in ffields
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.h

    r3da9f4 r2b7f4e  
    204204void checkall();
    205205#endif
     206
    206207void rSetHdl(idhdl h);
    207208ring rInit(sleftv* pn, sleftv* rv, sleftv* ord);
     209idhdl  rDefault(const char *s);
     210
    208211idhdl rSimpleFindHdl(ring r, idhdl root, idhdl n=NULL);
    209212idhdl rFindHdl(ring r, idhdl n, idhdl w);
  • libpolys/coeffs/ffields.cc

    r3da9f4 r2b7f4e  
    813813  assume( getCoeffType(r) == n_GF );
    814814
    815   GFInfo* p = (GFInfo *)(parameter);
     815  GFInfo* p = (GFInfo *)(parameter);
     816  assume (p->GFChar > 0);
     817  assume (p->GFDegree > 0);
     818
    816819  const char * name = p->GFPar_name;
     820 
    817821  r->m_nfCharQ = 0;
    818822  r->m_nfCharP = p->GFChar;
    819823  r->m_nfCharQ1 = 0;
    820   r->m_nfParameter= strdup(name); //TODO use omAlloc for allocating memory and use strcpy?
     824  r->m_nfParameter= omStrDup(name); //TODO use omAlloc for allocating memory and use strcpy?
    821825  r->m_nfPlus1Table= NULL;
    822826
    823827  r->has_simple_Alloc=TRUE;
    824828  r->has_simple_Inverse=TRUE;
    825 
    826   assume (p->GFChar > 0);
    827   assume (p->GFDegree > 0);
    828829
    829830  if(p->GFChar > (2<<15))
  • libpolys/polys/monomials/ring.h

    r3da9f4 r2b7f4e  
    336336////////// DEPRECATED
    337337/////// void   rChangeCurrRing(ring r);
    338 //void   rSetHdl(idhdl h);
    339 //ring   rInit(sleftv* pn, sleftv* rv, sleftv* ord);
    340 idhdl  rDefault(const char *s);
     338
    341339ring   rDefault(int ch, int N, char **n);
    342340ring   rDefault(const coeffs cf, int N, char **n);
    343 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    344 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
     341ring   rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
     342ring   rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    345343
    346344// #define rIsRingVar(A) r_IsRingVar(A,currRing)
Note: See TracChangeset for help on using the changeset viewer.