Changeset 84a6a7 in git
- Timestamp:
- May 29, 2006, 5:14:30 PM (17 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 7145030af0d072406bdbbd5f4cbd550cdea8ccba
- Parents:
- e9fe0516c17fbf29b282b51748cbc90f6e3a2ad2
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipid.cc
re9fe05 r84a6a7 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.7 3 2005-12-16 08:58:56Singular Exp $ */4 /* $Id: ipid.cc,v 1.74 2006-05-29 15:14:29 Singular Exp $ */ 5 5 6 6 /* … … 18 18 #include "febase.h" 19 19 #include "numbers.h" 20 #include "longrat.h" 20 21 #include "polys.h" 21 22 #include "ring.h" … … 248 249 IDNUMBER(h) = nInit(0); 249 250 break; 251 case BIGINT_CMD: 252 IDNUMBER(h) = nlInit(0); 253 break; 250 254 case IDEAL_CMD: 251 255 case MODUL_CMD: … … 614 618 assume(r!=NULL); 615 619 n_Delete(&IDNUMBER(h),r); 620 } 621 // bigint ------------------------------------------------------------- 622 else if (IDTYP(h) == BIGINT_CMD) 623 { 624 nlDelete(&IDNUMBER(h),NULL); 616 625 } 617 626 // intvec / intmat --------------------------------------------------- -
Singular/subexpr.cc
re9fe05 r84a6a7 5 5 * ABSTRACT: handling of leftv 6 6 */ 7 /* $Id: subexpr.cc,v 1.9 3 2006-02-10 13:12:38Singular Exp $ */7 /* $Id: subexpr.cc,v 1.94 2006-05-29 15:14:30 Singular Exp $ */ 8 8 9 9 #include <stdlib.h> … … 29 29 #include "ffields.h" 30 30 #include "numbers.h" 31 #include "longrat.h" 31 32 #include "ipshell.h" 32 33 #include "lists.h" … … 184 185 } 185 186 case NUMBER_CMD: 187 case BIGINT_CMD: 186 188 s=String(d); 187 189 if (s==NULL) return; … … 300 302 case NUMBER_CMD: 301 303 if (r!=NULL) n_Delete((number *)(&data),r); 304 break; 305 case BIGINT_CMD: 306 nlDelete((number *)(&data),r); 302 307 break; 303 308 case LIST_CMD: … … 457 462 case NUMBER_CMD: 458 463 return (void *)nCopy((number)d); 464 case BIGINT_CMD: 465 return (void *)nlCopy((number)d); 459 466 case MAP_CMD: 460 467 return (void *)maCopy((map)d); … … 598 605 if (name!=NULL) n=name; 599 606 else n=sNoName; 600 switch (Typ()) 607 int t=Typ(); 608 switch (t /*Typ()*/) 601 609 { 602 610 case INT_CMD: … … 636 644 char* ps = pString((poly) d); 637 645 s = (char*) omAlloc(strlen(ps) + 10); 638 sprintf(s,"%s(%s)", ( Typ()== POLY_CMD ? "poly" : "vector"), ps);646 sprintf(s,"%s(%s)", (t /*Typ()*/ == POLY_CMD ? "poly" : "vector"), ps); 639 647 return s; 640 648 } … … 666 674 s = StringAppendS((char*) (typed ? ")" : "")); 667 675 return omStrDup(s); 676 677 case BIGINT_CMD: 678 { 679 StringSetS((char*) (typed ? "bigint(" : "")); 680 number nl=(number)d; 681 nlWrite(nl); 682 s = StringAppendS((char*) (typed ? ")" : "")); 683 return omStrDup(s); 684 } 668 685 669 686 case MATRIX_CMD: … … 689 706 { 690 707 char* ns = (char*) omAlloc(strlen(s) + 10); 691 sprintf(ns, "%s(%s)", ( Typ()==MODUL_CMD ? "module" : "ideal"), s);708 sprintf(ns, "%s(%s)", (t/*Typ()*/==MODUL_CMD ? "module" : "ideal"), s); 692 709 omCheckAddr(ns); 693 710 return ns; … … 703 720 { 704 721 char* ns; 705 if ( Typ()== INTMAT_CMD)722 if (t/*Typ()*/ == INTMAT_CMD) 706 723 { 707 724 ns = (char*) omAlloc(strlen(s) + 40); … … 728 745 { 729 746 char* ns; 730 if ( Typ()== QRING_CMD)747 if (t/*Typ()*/ == QRING_CMD) 731 748 { 732 749 char* id = iiStringMatrix((matrix) ((ring) d)->qideal, dim); … … 1569 1586 #endif 1570 1587 break; 1588 case BIGINT_CMD: 1589 #ifdef LDEBUG 1590 nlTest((number)Data()); 1591 #endif 1592 break; 1571 1593 case POLY_CMD: 1572 1594 pTest((poly)Data());
Note: See TracChangeset
for help on using the changeset viewer.