Changeset 85e68dd in git for kernel/polys.cc


Ignore:
Timestamp:
Mar 19, 2008, 6:44:38 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
0e8683ce70a557cd606e08f67660015d94bf8c34
Parents:
36b7a3a23287fa7372c89db467c4ffab4d6268d4
Message:
*hannes: gcc 4.2


git-svn-id: file:///usr/local/Singular/svn/trunk@10634 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    r36b7a3 r85e68dd  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.27 2008-01-30 18:49:43 wienand Exp $ */
     4/* $Id: polys.cc,v 1.28 2008-03-19 17:44:10 Singular Exp $ */
    55
    66/*
     
    200200* convert monomial given as string to poly, e.g. 1x3y5z
    201201*/
    202 char * p_Read(char *st, poly &rc, ring r)
     202const char * p_Read(const char *st, poly &rc, ring r)
    203203{
    204204  if (r==NULL) { rc=NULL;return st;}
    205205  int i,j;
    206206  rc = p_Init(r);
    207   char *s = r->cf->nRead(st,&(rc->coef));
     207  const char *s = r->cf->nRead(st,&(rc->coef));
    208208  if (s==st)
    209209  /* i.e. it does not start with a coeff: test if it is a ringvar*/
     
    225225    if (j >= 0)
    226226    {
    227       char *s_save=s;
     227      const char *s_save=s;
    228228      s = eati(s,&i);
    229229      if (((unsigned long)i) >  r->bitmask)
     
    272272}
    273273
    274 poly pmInit(char *st, BOOLEAN &ok)
     274poly pmInit(const char *st, BOOLEAN &ok)
    275275{
    276276  poly p;
    277   char *s=p_Read(st,p,currRing);
     277  const char *s=p_Read(st,p,currRing);
    278278  if (*s!='\0')
    279279  {
Note: See TracChangeset for help on using the changeset viewer.