Changeset 8a150b in git for Singular/mpsr_GetMisc.cc


Ignore:
Timestamp:
Apr 29, 1999, 1:38:59 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ce5fb2786eb5fa61fee54f85fe8647ef13e7be20
Parents:
4be737ee7176ba0340ece58c1e6920d666833ac2
Message:
* hannes: added long reals


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

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_GetMisc.cc

    r4be737 r8a150b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_GetMisc.cc,v 1.13 1999-03-08 18:11:49 Singular Exp $ */
     4/* $Id: mpsr_GetMisc.cc,v 1.14 1999-04-29 11:38:52 Singular Exp $ */
    55
    66/***************************************************************
     
    3838{
    3939  // check for currRing
    40   if (currRing != NULL && rInternalChar(currRing) == ch) 
     40  if (currRing != NULL && rInternalChar(currRing) == ch)
    4141  // orig: currRing->ch==ch ???
    4242  {
    4343    int i, n = currRing->N;
    4444    char **names = currRing->names;
    45    
     45
    4646    for (i=0; i<n; i++)
    4747    {
     
    6060ring mpsr_rDefault(short ch)
    6161{
    62   if (currRing != NULL && rInternalChar(currRing) == ch) 
     62  if (currRing != NULL && rInternalChar(currRing) == ch)
    6363  // orig: currRing->ch==ch ???
    6464  {
     
    157157    int i, n;
    158158    poly *m1, *m2;
    159    
     159
    160160    if (id2 == NULL) return 0;
    161161    if ((n = IDELEMS(id1)) != IDELEMS(id2)) return 0;
     
    172172}
    173173
    174  
     174
    175175// returns TRUE, if r1 less or equals r2
    176176// FALSE, otherwise
     
    201201      r1->order[1] != r2->order[1])
    202202    return 0;
    203  
     203
    204204  for (i=0; i<rPar(r1);i++)
    205205  {
     
    259259  lv = mlv1->lv;
    260260  while (lv->next != NULL) lv = lv->next;
    261  
     261
    262262  lv->next = mlv2->lv;
    263263  mlv1->r = r;
     
    274274{
    275275  int i, n;
    276  
     276
    277277  while (l != NULL)
    278278  {
    279279    short typ = l->Typ();
    280    
     280
    281281    switch(typ)
    282282    {
     
    310310          break;
    311311        }
    312          
     312
    313313        case LIST_CMD:
    314314        {
     
    342342          mpsr_SetCurrRing(to_ring, TRUE);
    343343          nSetMap(rInternalChar(from_ring), from_ring->parameter,
    344             rPar(from_ring), from_ring->minpoly);
     344            rPar(from_ring), from_ring->minpoly);
    345345          l->data = (void *) nMap(nn);
    346346          mpsr_SetCurrRing(from_ring, FALSE);
     
    351351  }
    352352}
    353          
    354            
     353
     354
    355355// searches for a ring handle which has a ring which is equal to r
    356356// if one is found, then this one is set to the new global ring
     
    366366    return;
    367367  }
    368  
     368
    369369  rTest(r);
    370370  // try to find an idhdl which is an equal ring
     
    420420  return grname;
    421421}
    422        
     422
    423423// searches through the Singular namespace for a matching name:
    424424// the first found is returned together witht the respective ring
     
    431431#endif /* HAVE_NAMESPACES */
    432432  r = NULL;
    433  
     433
    434434  if (h != NULL)
    435435  {
     
    445445      h2 = (IDRING(h)->idroot!=NULL ?IDRING(h)->idroot->get(name, 0) :
    446446            (idhdl) NULL);
    447      
     447
    448448      if (h2 != NULL)
    449449      {
     
    550550#ifdef  PARI_BIGINT_TEST
    551551  init(4000000, 2);
    552 #endif 
     552#endif
    553553}
    554554
Note: See TracChangeset for help on using the changeset viewer.