Changeset 223636 in git


Ignore:
Timestamp:
Jan 7, 2009, 4:22:40 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
2c03503b0ef863a6806cf7c05b2364038ad59a1a
Parents:
14193f37566dc9e37aa5284d788883e688efd44e
Message:
*hannes: rCopy0


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

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r14193f r223636  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.109 2009-01-07 14:54:05 Singular Exp $ */
     4/* $Id: ring.cc,v 1.110 2009-01-07 15:22:40 Singular Exp $ */
    55
    66/*
     
    14661466  int i,j;
    14671467  ring res=(ring)omAllocBin(ip_sring_bin);
     1468  memset(res,0,sizeof(ip_sring));
     1469  //memcpy4(res,r,sizeof(ip_sring));
    14681470  res->idroot=NULL; /* local objects */
    14691471  //int*       order;  /* array of orderings */
     
    15081510
    15091511  res->N=r->N;      /* number of vars */
    1510 
    15111512  res->P=r->P;      /* number of pars */
    15121513  res->OrdSgn=r->OrdSgn; /* 1 for polynomial rings, -1 otherwise */
     
    15871588  //  nc_struct*    _nc; // private
    15881589#endif
    1589 
    1590   memcpy4(res,r,sizeof(ip_sring));
    1591   res->NegWeightL_Offset=NULL;
    1592   res->VarL_Offset=NULL;
    1593   res->ordsgn=NULL;
    1594   res->typ=NULL;
    1595   res->order=NULL;
    1596   res->VarOffset = NULL;
    1597   res->p_Procs=NULL;
     1590  res->options=r->options;
     1591  #ifdef HAVE_RINGS
     1592  res->ringtype=r->ringtype;
     1593  #endif
    15981594  res->cf=NULL;
    15991595  res->PolyBin=NULL;
    1600   res->ref=0;
     1596  //
    16011597  if (r->algring!=NULL)
    16021598    r->algring->ref++;
     1599  res->algring=r->algring;
    16031600  if (r->parameter!=NULL)
    16041601  {
     
    16491646    res->names[i] = omStrDup(r->names[i]);
    16501647  }
    1651   res->idroot = NULL;
    16521648  if (r->qideal!=NULL)
    16531649  {
     
    16551651    else res->qideal = NULL;
    16561652  }
     1653  else res->qideal = NULL;
    16571654#ifdef HAVE_PLURAL
    16581655  res->GetNC() = NULL; // copy is purely commutative!!!
Note: See TracChangeset for help on using the changeset viewer.