Changeset c728c0 in git
- Timestamp:
- Feb 9, 2011, 7:54:23 PM (13 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 76b37cc99585766333fcee968b6b6dad3541da2c
- Parents:
- 091193e7e2364864e1fb2c03057d6e8181254316
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/bigintm.cc
r091193e rc728c0 124 124 return TRUE; 125 125 } 126 default:127 Werror("op %d not implemented for type %d",op,a1->Typ());128 break;129 126 } 130 return TRUE;127 return blackboxDefaultOp2(op,res,a1,a2); 131 128 } 132 129 // BOOLEAN opM(int op, leftv res, leftv args) -
Singular/blackbox.cc
r091193e rc728c0 53 53 return TRUE; 54 54 } 55 BOOLEAN blackbox _default_Op2(int op,leftv l, leftv r1, leftv r2)55 BOOLEAN blackboxDefaultOp2(int op,leftv l, leftv r1, leftv r2) 56 56 { 57 57 Werror("blackbox_Op2 of type %s(%d) for op %s(%d) not implemented", … … 72 72 } 73 73 74 BOOLEAN blackbox_default_Check(blackbox *b, void *d) 75 { 76 return FALSE; 77 } 74 78 int setBlackboxStuff(blackbox *bb, const char *n) 75 79 { … … 85 89 if (bb->blackbox_Copy==NULL) bb->blackbox_Copy=blackbox_default_Copy; 86 90 if (bb->blackbox_Op1==NULL) bb->blackbox_Op1=blackboxDefaultOp1; 87 if (bb->blackbox_Op2==NULL) bb->blackbox_Op2=blackbox _default_Op2;91 if (bb->blackbox_Op2==NULL) bb->blackbox_Op2=blackboxDefaultOp2; 88 92 if (bb->blackbox_Op3==NULL) bb->blackbox_Op3=blackbox_default_Op3; 89 93 if (bb->blackbox_OpM==NULL) bb->blackbox_OpM=blackbox_default_OpM; 94 if (bb->blackbox_Check==NULL) bb->blackbox_Check=blackbox_default_Check; 90 95 blackboxTableCnt++; 91 96 return blackboxTableCnt+BLACKBOX_OFFSET-1; -
Singular/blackbox.h
r091193e rc728c0 33 33 /// interpreter: operations with undefined number of operands 34 34 BOOLEAN (*blackbox_OpM)(int op,leftv l, leftv r); 35 /// check internal structure 36 BOOLEAN (*blackbox_Check)(blackbox *b,void *d); 35 37 /// additional type info 36 38 void *data; … … 40 42 /// default procedure blackboxDefaultOp1, to be called as "default:" branch 41 43 BOOLEAN blackboxDefaultOp1(int op,leftv l, leftv r); 44 /// default procedure blackboxDefaultOp2, to be called as "default:" branch 45 BOOLEAN blackboxDefaultOp2(int op,leftv l, leftv r1, leftv r2); 42 46 43 47 /// return the structure to the type given by t
Note: See TracChangeset
for help on using the changeset viewer.