Changeset 8a150b in git for Singular/mpsr_GetMisc.cc
- Timestamp:
- Apr 29, 1999, 1:38:59 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ce5fb2786eb5fa61fee54f85fe8647ef13e7be20
- Parents:
- 4be737ee7176ba0340ece58c1e6920d666833ac2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpsr_GetMisc.cc
r4be737 r8a150b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_GetMisc.cc,v 1.1 3 1999-03-08 18:11:49Singular Exp $ */4 /* $Id: mpsr_GetMisc.cc,v 1.14 1999-04-29 11:38:52 Singular Exp $ */ 5 5 6 6 /*************************************************************** … … 38 38 { 39 39 // check for currRing 40 if (currRing != NULL && rInternalChar(currRing) == ch) 40 if (currRing != NULL && rInternalChar(currRing) == ch) 41 41 // orig: currRing->ch==ch ??? 42 42 { 43 43 int i, n = currRing->N; 44 44 char **names = currRing->names; 45 45 46 46 for (i=0; i<n; i++) 47 47 { … … 60 60 ring mpsr_rDefault(short ch) 61 61 { 62 if (currRing != NULL && rInternalChar(currRing) == ch) 62 if (currRing != NULL && rInternalChar(currRing) == ch) 63 63 // orig: currRing->ch==ch ??? 64 64 { … … 157 157 int i, n; 158 158 poly *m1, *m2; 159 159 160 160 if (id2 == NULL) return 0; 161 161 if ((n = IDELEMS(id1)) != IDELEMS(id2)) return 0; … … 172 172 } 173 173 174 174 175 175 // returns TRUE, if r1 less or equals r2 176 176 // FALSE, otherwise … … 201 201 r1->order[1] != r2->order[1]) 202 202 return 0; 203 203 204 204 for (i=0; i<rPar(r1);i++) 205 205 { … … 259 259 lv = mlv1->lv; 260 260 while (lv->next != NULL) lv = lv->next; 261 261 262 262 lv->next = mlv2->lv; 263 263 mlv1->r = r; … … 274 274 { 275 275 int i, n; 276 276 277 277 while (l != NULL) 278 278 { 279 279 short typ = l->Typ(); 280 280 281 281 switch(typ) 282 282 { … … 310 310 break; 311 311 } 312 312 313 313 case LIST_CMD: 314 314 { … … 342 342 mpsr_SetCurrRing(to_ring, TRUE); 343 343 nSetMap(rInternalChar(from_ring), from_ring->parameter, 344 344 rPar(from_ring), from_ring->minpoly); 345 345 l->data = (void *) nMap(nn); 346 346 mpsr_SetCurrRing(from_ring, FALSE); … … 351 351 } 352 352 } 353 354 353 354 355 355 // searches for a ring handle which has a ring which is equal to r 356 356 // if one is found, then this one is set to the new global ring … … 366 366 return; 367 367 } 368 368 369 369 rTest(r); 370 370 // try to find an idhdl which is an equal ring … … 420 420 return grname; 421 421 } 422 422 423 423 // searches through the Singular namespace for a matching name: 424 424 // the first found is returned together witht the respective ring … … 431 431 #endif /* HAVE_NAMESPACES */ 432 432 r = NULL; 433 433 434 434 if (h != NULL) 435 435 { … … 445 445 h2 = (IDRING(h)->idroot!=NULL ?IDRING(h)->idroot->get(name, 0) : 446 446 (idhdl) NULL); 447 447 448 448 if (h2 != NULL) 449 449 { … … 550 550 #ifdef PARI_BIGINT_TEST 551 551 init(4000000, 2); 552 #endif 552 #endif 553 553 } 554 554
Note: See TracChangeset
for help on using the changeset viewer.