Changeset 75fde54 in git
- Timestamp:
- Nov 21, 2014, 5:49:34 PM (9 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- cecb7ea8a22076db547d32bfdc5c879d5283420d
- Parents:
- cb6dc33c118a894b213ceda9734ce618f5c616b9
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/gentable.cc
rcb6dc33 r75fde54 20 20 #include "grammar.h" 21 21 #include "tok.h" 22 23 inline int RingDependend(int t) { return (BEGIN_RING<t)&&(t<END_RING); } 22 24 23 25 // to produce convert_table.texi for doc: … … 348 350 Tok2Cmdname(dArith1[i].arg), 349 351 Tok2Cmdname(dArith1[i].res)); 352 if (RingDependend(dArith1[i].res) && (!RingDependend(dArith1[i].arg))) 353 { 354 fprintf(outfile,"// WARNING: %s requires currRing\n",s); 355 } 350 356 i++; 351 357 } … … 362 368 Tok2Cmdname(dArith2[i].arg2), 363 369 Tok2Cmdname(dArith2[i].res)); 370 if (RingDependend(dArith2[i].res) 371 && (!RingDependend(dArith2[i].arg1)) 372 && (!RingDependend(dArith2[i].arg2))) 373 { 374 fprintf(outfile,"// WARNING: %s requires currRing\n",s); 375 } 364 376 i++; 365 377 } … … 377 389 Tok2Cmdname(dArith3[i].arg3), 378 390 Tok2Cmdname(dArith3[i].res)); 391 if (RingDependend(dArith3[i].res) 392 && (!RingDependend(dArith3[i].arg1)) 393 && (!RingDependend(dArith3[i].arg2)) 394 && (!RingDependend(dArith3[i].arg3))) 395 { 396 fprintf(outfile,"// WARNING: %s requires currRing\n",s); 397 } 379 398 i++; 380 399 } -
Singular/iparith.cc
rcb6dc33 r75fde54 108 108 #include <polys/nc/nc.h> 109 109 #include <polys/nc/sca.h> 110 #define ALLOW_PLURAL 1111 #define NO_PLURAL 0112 #define COMM_PLURAL 2113 110 #define PLURAL_MASK 3 114 111 #else /* HAVE_PLURAL */ 115 #define ALLOW_PLURAL 0116 #define NO_PLURAL 0117 #define COMM_PLURAL 0118 112 #define PLURAL_MASK 0 119 113 #endif /* HAVE_PLURAL */ … … 126 120 #define ZERODIVISOR_MASK 0 127 121 #endif 122 #define ALLOW_PLURAL 1 123 #define NO_PLURAL 0 124 #define COMM_PLURAL 2 128 125 #define ALLOW_RING 4 129 126 #define NO_RING 0 … … 7792 7789 if (check_valid(dA2[i].valid_for,op)) break; 7793 7790 } 7791 else 7792 { 7793 if (RingDependend(dA2[i].res)) 7794 { 7795 WerrorS("no ring active"); 7796 break; 7797 } 7798 } 7794 7799 if (traceit&TRACE_CALL) 7795 7800 Print("call %s(%s,%s)\n",iiTwoOps(op),Tok2Cmdname(at),Tok2Cmdname(bt)); … … 7825 7830 { 7826 7831 if (check_valid(dA2[i].valid_for,op)) break; 7832 } 7833 else 7834 { 7835 if (RingDependend(dA2[i].res)) 7836 { 7837 WerrorS("no ring active"); 7838 break; 7839 } 7827 7840 } 7828 7841 if (traceit&TRACE_CALL) … … 8003 8016 if (check_valid(dA1[i].valid_for,op)) break; 8004 8017 } 8018 else 8019 { 8020 if (RingDependend(dA1[i].res)) 8021 { 8022 WerrorS("no ring active"); 8023 break; 8024 } 8025 } 8005 8026 if (traceit&TRACE_CALL) 8006 8027 Print("call %s(%s)\n",iiTwoOps(op),Tok2Cmdname(at)); … … 8035 8056 { 8036 8057 if (check_valid(dA1[i].valid_for,op)) break; 8058 } 8059 else 8060 { 8061 if (RingDependend(dA1[i].res)) 8062 { 8063 WerrorS("no ring active"); 8064 break; 8065 } 8037 8066 } 8038 8067 if (traceit&TRACE_CALL)
Note: See TracChangeset
for help on using the changeset viewer.