Changeset a425ec4 in git
- Timestamp:
- Oct 2, 2008, 2:02:36 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 9d7447d8bc6a22cf11238df4f670a1d68d5fc982
- Parents:
- 4b00efa888e880210e2ee5d8e9b301e5a1f002ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r4b00ef ra425ec4 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.28 2 2008-09-10 09:15:52Singular Exp $ */4 /* $Id: extra.cc,v 1.283 2008-10-02 12:02:36 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 916 916 } 917 917 else 918 #endif 918 /*==================== freeGB, twosided GB in free algebra =================*/ 919 #ifdef HAVE_SHIFTBBA 920 if (strcmp(sys_cmd, "freegb") == 0) 921 { 922 ideal I; 923 int uptodeg, lVblock; 924 if ((h!=NULL) && (h->Typ()==IDEAL_CMD)) 925 { 926 I=(ideal)h->CopyD(); 927 h=h->next; 928 } 929 else return TRUE; 930 if ((h!=NULL) && (h->Typ()==INT_CMD)) 931 { 932 uptodeg=(int)((long)(h->Data())); 933 h=h->next; 934 } 935 else return TRUE; 936 if ((h!=NULL) && (h->Typ()==INT_CMD)) 937 { 938 lVblock=(int)((long)(h->Data())); 939 res->data = freegb(I,uptodeg,lVblock); 940 if (res->data == NULL) 941 { 942 /* that is there were input errors */ 943 res->data = I; 944 } 945 res->rtyp = IDEAL_CMD; 946 } 947 else return TRUE; 948 return FALSE; 949 } 950 else 951 #endif /*SHIFTBBA*/ 952 #endif /*PLURAL*/ 919 953 #ifdef HAVE_WALK 920 954 /*==================== walk stuff =================*/ … … 2631 2665 } 2632 2666 else 2633 /*==================== freeGB, twosided GB in free algebra =================*/2634 #ifdef HAVE_SHIFTBBA2635 if (strcmp(sys_cmd, "freegb") == 0)2636 {2637 ideal I;2638 int uptodeg, lVblock;2639 if ((h!=NULL) && (h->Typ()==IDEAL_CMD))2640 {2641 I=(ideal)h->CopyD();2642 h=h->next;2643 }2644 else return TRUE;2645 if ((h!=NULL) && (h->Typ()==INT_CMD))2646 {2647 uptodeg=(int)((long)(h->Data()));2648 h=h->next;2649 }2650 else return TRUE;2651 if ((h!=NULL) && (h->Typ()==INT_CMD))2652 {2653 lVblock=(int)((long)(h->Data()));2654 res->data = freegb(I,uptodeg,lVblock);2655 if (res->data == NULL)2656 {2657 /* that is there were input errors */2658 res->data = I;2659 }2660 res->rtyp = IDEAL_CMD;2661 }2662 else return TRUE;2663 return FALSE;2664 }2665 else2666 #endif2667 2667 /*==================== shift-test for freeGB =================*/ 2668 2668 #ifdef HAVE_SHIFTBBA
Note: See TracChangeset
for help on using the changeset viewer.