Changeset 85e68dd in git for kernel/polys.cc
- Timestamp:
- Mar 19, 2008, 6:44:38 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 0e8683ce70a557cd606e08f67660015d94bf8c34
- Parents:
- 36b7a3a23287fa7372c89db467c4ffab4d6268d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/polys.cc
r36b7a3 r85e68dd 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1.2 7 2008-01-30 18:49:43 wienandExp $ */4 /* $Id: polys.cc,v 1.28 2008-03-19 17:44:10 Singular Exp $ */ 5 5 6 6 /* … … 200 200 * convert monomial given as string to poly, e.g. 1x3y5z 201 201 */ 202 c har * p_Read(char *st, poly &rc, ring r)202 const char * p_Read(const char *st, poly &rc, ring r) 203 203 { 204 204 if (r==NULL) { rc=NULL;return st;} 205 205 int i,j; 206 206 rc = p_Init(r); 207 c har *s = r->cf->nRead(st,&(rc->coef));207 const char *s = r->cf->nRead(st,&(rc->coef)); 208 208 if (s==st) 209 209 /* i.e. it does not start with a coeff: test if it is a ringvar*/ … … 225 225 if (j >= 0) 226 226 { 227 c har *s_save=s;227 const char *s_save=s; 228 228 s = eati(s,&i); 229 229 if (((unsigned long)i) > r->bitmask) … … 272 272 } 273 273 274 poly pmInit(c har *st, BOOLEAN &ok)274 poly pmInit(const char *st, BOOLEAN &ok) 275 275 { 276 276 poly p; 277 c har *s=p_Read(st,p,currRing);277 const char *s=p_Read(st,p,currRing); 278 278 if (*s!='\0') 279 279 {
Note: See TracChangeset
for help on using the changeset viewer.