Changeset 7b9b8e5 in git
- Timestamp:
- Jul 27, 2016, 5:32:43 PM (8 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- f9b0bddbfb9793b47a94a5d2aace6da9918e3c70
- Parents:
- e642218a429036f2f457d8045880dc747c8200a7
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/polymake/polymake_wrapper.cc
re64221 r7b9b8e5 76 76 if (d1 != d2) 77 77 { 78 Werror ("mismatching ambient dimensions");78 WerrorS("mismatching ambient dimensions"); 79 79 return TRUE; 80 80 } … … 97 97 if (d1 != d2) 98 98 { 99 Werror ("mismatching ambient dimensions");99 WerrorS("mismatching ambient dimensions"); 100 100 return TRUE; 101 101 } -
Singular/dyn_modules/pyobject/pyobject.cc
re64221 r7b9b8e5 202 202 IDTYP(handle) = PythonInterpreter::id(); 203 203 } 204 else { Werror ("Importing pyobject to Singular failed"); }204 else { WerrorS("Importing pyobject to Singular failed"); } 205 205 } 206 206 … … 422 422 423 423 /// Evaluate string in python 424 PythonObject python_eval(const char* arg) {425 424 PythonObject python_eval(const char* arg) 425 { 426 426 PyObject* globals = PyModule_GetDict(PyImport_Import(PyString_FromString("__main__"))); 427 427 return PyRun_String(arg, Py_eval_input, globals, globals); … … 429 429 430 430 /// Evaluate string in python from Singular 431 BOOLEAN python_eval(leftv result, leftv arg) { 432 if ( !arg || (arg->Typ() != STRING_CMD) ) { 433 Werror("expected python_eval('string')"); 431 BOOLEAN python_eval(leftv result, leftv arg) 432 { 433 if ( !arg || (arg->Typ() != STRING_CMD) ) 434 { 435 WerrorS("expected python_eval('string')"); 434 436 return TRUE; 435 437 } … … 442 444 BOOLEAN python_run(leftv result, leftv arg) 443 445 { 444 if ( !arg || (arg->Typ() != STRING_CMD) ) { 445 Werror("expected python_run('string')"); 446 if ( !arg || (arg->Typ() != STRING_CMD) ) 447 { 448 WerrorS("expected python_run('string')"); 446 449 return TRUE; 447 450 } … … 473 476 474 477 /// import python module and export identifiers in Singular namespace 475 BOOLEAN python_import(leftv result, leftv value) { 476 477 if ((value == NULL) || (value->Typ()!= STRING_CMD)) { 478 Werror("expected python_import('string')"); 478 BOOLEAN python_import(leftv result, leftv value) 479 { 480 if ((value == NULL) || (value->Typ()!= STRING_CMD)) 481 { 482 WerrorS("expected python_import('string')"); 479 483 return TRUE; 480 484 } … … 531 535 { 532 536 long value = PyInt_AsLong(PythonCastStatic<>(head)); 533 if( (value == -1) && PyErr_Occurred() ) { 534 Werror("'pyobject` cannot be converted to integer"); 537 if( (value == -1) && PyErr_Occurred() ) 538 { 539 WerrorS("'pyobject` cannot be converted to integer"); 535 540 PyErr_Clear(); 536 541 return TRUE; … … 612 617 613 618 intvec* vec = new intvec(len); 614 for(unsigned long idx = 0; idx != len; ++idx) { 619 for(unsigned long idx = 0; idx != len; ++idx) 620 { 615 621 long value = PyInt_AsLong(obj[idx]); 616 622 (*vec)[idx] = static_cast<int>(value); 617 623 618 if ((value == -1) && PyErr_Occurred()) { 624 if ((value == -1) && PyErr_Occurred()) 625 { 619 626 value = 0; 620 627 PyErr_Clear(); 621 628 } 622 if (value != long((*vec)[idx])) { 629 if (value != long((*vec)[idx])) 630 { 623 631 delete vec; 624 Werror ("'pyobject` cannot be converted to intvec");632 WerrorS("'pyobject` cannot be converted to intvec"); 625 633 return TRUE; 626 634 } … … 696 704 { 697 705 tok = setBlackboxStuff((blackbox*)omAlloc0(sizeof(blackbox)), 698 706 "pyobject"); 699 707 } 700 708 return getBlackboxStuff(tok); -
Singular/dyn_modules/syzextra/singularxx_defs.h
re64221 r7b9b8e5 58 58 # define SINGULARXX_THROW(type) throw type(); 59 59 #else 60 # define SINGULARXX_THROW(type) Werror (type().what());60 # define SINGULARXX_THROW(type) WerrorS(type().what()); 61 61 #endif 62 62 -
Singular/fehelp.cc
re64221 r7b9b8e5 1019 1019 static void heDummyHelp(heEntry /*hentry*/, int /*br*/) 1020 1020 { 1021 Werror ("No functioning help browser available.");1021 WerrorS("No functioning help browser available."); 1022 1022 } 1023 1023 -
Singular/ipassign.cc
re64221 r7b9b8e5 260 260 if ((p==NULL) ||(NUM((fraction)p)==NULL)) 261 261 { 262 Werror ("Could not construct the alg. extension: minpoly==0");262 WerrorS("Could not construct the alg. extension: minpoly==0"); 263 263 // cleanup A: TODO 264 264 rDelete( A.r ); … … 301 301 if (new_cf==NULL) 302 302 { 303 Werror ("Could not construct the alg. extension: llegal minpoly?");303 WerrorS("Could not construct the alg. extension: llegal minpoly?"); 304 304 // cleanup A: TODO 305 305 rDelete( A.r ); -
Singular/ipid.cc
re64221 r7b9b8e5 367 367 } 368 368 else 369 Werror ("kill what ?");369 WerrorS("kill what ?"); 370 370 } 371 371 -
Singular/iplib.cc
re64221 r7b9b8e5 834 834 else 835 835 Werror(yylp_errlist[yylp_errno], yylplineno); 836 Werror ("Cannot load library,... aborting.");836 WerrorS("Cannot load library,... aborting."); 837 837 reinit_yylp(); 838 838 fclose( yylpin ); -
Singular/ipshell.cc
re64221 r7b9b8e5 2219 2219 if ((L->m[0].rtyp!=INT_CMD) || (L->m[0].data!=(char *)0)) 2220 2220 { 2221 Werror ("invald coeff. field description, expecting 0");2221 WerrorS("invalid coeff. field description, expecting 0"); 2222 2222 return; 2223 2223 } … … 2227 2227 if (L->m[1].rtyp!=LIST_CMD) 2228 2228 { 2229 Werror ("invald coeff. field description, expecting precision list");2229 WerrorS("invalid coeff. field description, expecting precision list"); 2230 2230 return; 2231 2231 } … … 2237 2237 || (LL->m[0].rtyp!=INT_CMD))) 2238 2238 { 2239 Werror ("invald coeff. field description list");2239 WerrorS("invalid coeff. field description list"); 2240 2240 return; 2241 2241 } … … 2273 2273 if (L->m[2].rtyp!=STRING_CMD) 2274 2274 { 2275 Werror ("invald coeff. field description, expecting parameter name");2275 WerrorS("invalid coeff. field description, expecting parameter name"); 2276 2276 return; 2277 2277 } … … 2302 2302 else 2303 2303 { 2304 if (L->m[1].rtyp!=LIST_CMD) Werror ("invald data, expecting list of numbers");2304 if (L->m[1].rtyp!=LIST_CMD) WerrorS("invalid data, expecting list of numbers"); 2305 2305 lists LL=(lists)L->m[1].data; 2306 2306 if ((LL->nr >= 0) && LL->m[0].rtyp == BIGINT_CMD) … … 2330 2330 if ((mpz_cmp_ui(modBase, 1) == 0) && (mpz_cmp_ui(modBase, 0) < 0)) 2331 2331 { 2332 Werror ("Wrong ground ring specification (module is 1)");2332 WerrorS("Wrong ground ring specification (module is 1)"); 2333 2333 return; 2334 2334 } 2335 2335 if (modExponent < 1) 2336 2336 { 2337 Werror ("Wrong ground ring specification (exponent smaller than 1");2337 WerrorS("Wrong ground ring specification (exponent smaller than 1)"); 2338 2338 return; 2339 2339 } … … 5716 5716 if ((mpz_cmp_ui(modBase, 1) == 0) && (mpz_cmp_ui(modBase, 0) < 0)) 5717 5717 { 5718 Werror ("Wrong ground ring specification (module is 1)");5718 WerrorS("Wrong ground ring specification (module is 1)"); 5719 5719 goto rInitError; 5720 5720 } 5721 5721 if (modExponent < 1) 5722 5722 { 5723 Werror ("Wrong ground ring specification (exponent smaller than 1");5723 WerrorS("Wrong ground ring specification (exponent smaller than 1"); 5724 5724 goto rInitError; 5725 5725 } … … 5812 5812 if (cf==NULL) 5813 5813 { 5814 Werror ("Invalid ground field specification");5814 WerrorS("Invalid ground field specification"); 5815 5815 goto rInitError; 5816 5816 // const int ch=32003; -
Singular/links/asciiLink.cc
re64221 r7b9b8e5 184 184 else 185 185 { 186 Werror ("cannot convert to string");186 WerrorS("cannot convert to string"); 187 187 err=TRUE; 188 188 } … … 531 531 if (l->name[0] == '\0') 532 532 { 533 Werror ("getdump: Can not get dump from stdin");533 WerrorS("getdump: Can not get dump from stdin"); 534 534 return TRUE; 535 535 } -
Singular/links/pipeLink.cc
re64221 r7b9b8e5 146 146 else 147 147 { 148 Werror ("cannot convert to string");148 WerrorS("cannot convert to string"); 149 149 err=TRUE; 150 150 } -
Singular/links/ssiLink.cc
re64221 r7b9b8e5 408 408 return (number)ssiReadPoly_R(d,cf->extRing); 409 409 } 410 else Werror ("coeffs not implemented in ssiReadNumber");410 else WerrorS("coeffs not implemented in ssiReadNumber"); 411 411 return NULL; 412 412 } -
Singular/newstruct.cc
re64221 r7b9b8e5 375 375 res->data=(void *)currRing; r=currRing; 376 376 if (r!=NULL) r->ref++; 377 else Werror ("ring of this member is not set and no basering found");377 else WerrorS("ring of this member is not set and no basering found"); 378 378 } 379 379 return r==NULL; -
Singular/pyobject_setup.cc
re64221 r7b9b8e5 33 33 void pyobject_default_destroy(blackbox */*b*/, void */*d*/) 34 34 { 35 Werror ("Python-based functionality not available!");35 WerrorS("Python-based functionality not available!"); 36 36 } 37 37 -
Singular/walk.cc
re64221 r7b9b8e5 5531 5531 if(weight_rad < 0) 5532 5532 { 5533 Werror ("Invalid radius.\n");5533 WerrorS("Invalid radius.\n"); 5534 5534 return NULL; 5535 5535 } … … 5538 5538 if(pert_deg > nV || pert_deg < 1) 5539 5539 { 5540 Werror ("Invalid perturbation degree.\n");5540 WerrorS("Invalid perturbation degree.\n"); 5541 5541 return NULL; 5542 5542 } … … 5876 5876 if(op_deg < 1 || tp_deg < 1 || op_deg > nV || tp_deg > nV) 5877 5877 { 5878 Werror ("Invalid perturbation degree.\n");5878 WerrorS("Invalid perturbation degree.\n"); 5879 5879 return NULL; 5880 5880 } … … 6311 6311 if(weight_rad < 0) 6312 6312 { 6313 Werror ("Invalid radius.\n");6313 WerrorS("Invalid radius.\n"); 6314 6314 return NULL; 6315 6315 } … … 6318 6318 if(op_deg < 1 || tp_deg < 1 || op_deg > nV || tp_deg > nV) 6319 6319 { 6320 Werror ("Invalid perturbation degree.\n");6320 WerrorS("Invalid perturbation degree.\n"); 6321 6321 return NULL; 6322 6322 } … … 8113 8113 if(weight_rad < 0) 8114 8114 { 8115 Werror ("Invalid radius.\n");8115 WerrorS("Invalid radius.\n"); 8116 8116 return NULL; 8117 8117 } … … 9219 9219 if(tp_deg < 1 || tp_deg > nV) 9220 9220 { 9221 Werror ("Invalid perturbation degree.\n");9221 WerrorS("Invalid perturbation degree.\n"); 9222 9222 return NULL; 9223 9223 } -
Singular/walk_ip.cc
re64221 r7b9b8e5 124 124 125 125 case WalkIncompatibleDestRing: 126 Werror ( "Order of basering not allowed,\n must be a combination of a,A,lp,dp,Dp,wp,Wp,M and C.\n");126 WerrorS( "Order of basering not allowed,\n must be a combination of a,A,lp,dp,Dp,wp,Wp,M and C.\n"); 127 127 destIdeal= NULL; 128 128 break; … … 141 141 142 142 case WalkOverFlowError: 143 Werror ( "Overflow occurred.\n");143 WerrorS( "Overflow occurred.\n"); 144 144 destIdeal= NULL; 145 145 break; -
kernel/GBEngine/kstd2.cc
re64221 r7b9b8e5 1621 1621 if (strat->overflow) 1622 1622 { 1623 if (!kStratChangeTailRing(strat)) { Werror ("OVERFLOW.."); break;}1623 if (!kStratChangeTailRing(strat)) { WerrorS("OVERFLOW.."); break;} 1624 1624 } 1625 1625 … … 2078 2078 if (strat->overflow) 2079 2079 { 2080 if (!kStratChangeTailRing(strat)) { Werror ("OVERFLOW.."); break;}2080 if (!kStratChangeTailRing(strat)) { WerrorS("OVERFLOW.."); break;} 2081 2081 } 2082 2082 … … 2798 2798 if (strat->overflow) 2799 2799 { 2800 if (!kStratChangeTailRing(strat)) { Werror ("OVERFLOW.."); break;}2800 if (!kStratChangeTailRing(strat)) { WerrorS("OVERFLOW.."); break;} 2801 2801 } 2802 2802 -
kernel/GBEngine/ratgring.cc
re64221 r7b9b8e5 351 351 { 352 352 #ifdef PDEBUG 353 Werror ("nc_rat_CreateSpoly: different non-zero components!");353 WerrorS("nc_rat_CreateSpoly: different non-zero components!"); 354 354 #endif 355 355 return(NULL); … … 472 472 { 473 473 #ifdef PDEBUG 474 Werror ("nc_rat_ReduceSpolyNew: different non-zero components!");474 WerrorS("nc_rat_ReduceSpolyNew: different non-zero components!"); 475 475 #endif 476 476 return(NULL); -
kernel/GBEngine/syz3.cc
re64221 r7b9b8e5 1004 1004 if ((idIs0(new_generators)) || (new_generators->m[0]==NULL)) 1005 1005 { 1006 Werror ("Hier ist was faul!\n");1006 WerrorS("Hier ist was faul!\n"); 1007 1007 return NULL; 1008 1008 } -
kernel/combinatorics/hilb.cc
re64221 r7b9b8e5 70 70 if (z>(MAX_INT_VAL)/2) 71 71 { 72 Werror ("interal arrays too big");72 WerrorS("interal arrays too big"); 73 73 return; 74 74 } … … 258 258 { 259 259 idPrint(I); 260 Werror ("Ideal is not deg sorted!!");260 WerrorS("Ideal is not deg sorted!!"); 261 261 return(FALSE); 262 262 } -
kernel/fast_mult.cc
re64221 r7b9b8e5 591 591 592 592 if(rChar(r)!=0) 593 Werror ("Char not 0, pFastPowerMC not implemented for this case");593 WerrorS("Char not 0, pFastPowerMC not implemented for this case"); 594 594 if (n<=1) 595 Werror ("not implemented for so small n, recursion fails");//should be length(f)595 WerrorS("not implemented for so small n, recursion fails");//should be length(f) 596 596 if (pLength(f)<=1) 597 Werror ("not implemented for so small length of f, recursion fails");597 WerrorS("not implemented for so small length of f, recursion fails"); 598 598 // number null_number=n_Init(0,r); 599 599 number* facult=(number*) omAlloc((n+1)*sizeof(number)); -
kernel/ideals.cc
re64221 r7b9b8e5 1520 1520 if ( nc_rComplete(origR, tmpR, false) ) // no quotient ideal! 1521 1521 { 1522 Werror ("no elimination is possible: ordering condition is violated");1522 WerrorS("no elimination is possible: ordering condition is violated"); 1523 1523 // cleanup 1524 1524 rDelete(tmpR); -
kernel/maps/subst_maps.cc
re64221 r7b9b8e5 46 46 ||(preimage_r!=currRing)) 47 47 { 48 Werror ("not implemented");48 WerrorS("not implemented"); 49 49 return NULL; 50 50 } -
kernel/old/old.Number.h
re64221 r7b9b8e5 72 72 Number& operator+=(const Number & n2){ 73 73 if (r!=n2.r){ 74 Werror ("not the same ring");74 WerrorS("not the same ring"); 75 75 return *this; 76 76 } … … 82 82 Number& operator*=(const Number & n2){ 83 83 if (r!=n2.r){ 84 Werror ("not the same ring");84 WerrorS("not the same ring"); 85 85 return *this; 86 86 } … … 92 92 Number& operator-=(const Number & n2){ 93 93 if (r!=n2.r){ 94 Werror ("not the same ring");94 WerrorS("not the same ring"); 95 95 return *this; 96 96 } … … 102 102 Number& operator/=(const Number & n2){ 103 103 if (r!=n2.r){ 104 Werror ("not the same ring");104 WerrorS("not the same ring"); 105 105 return *this; 106 106 } -
kernel/old/old.Poly.h
re64221 r7b9b8e5 90 90 PolyImpl& operator+=(const PolyImpl & p2){ 91 91 if (r!=p2.r){ 92 Werror ("not the same ring");92 WerrorS("not the same ring"); 93 93 return *this; 94 94 } … … 104 104 PolyImpl& operator*=(const PolyImpl & p2){ 105 105 if (r!=p2.r){ 106 Werror ("not the same ring");106 WerrorS("not the same ring"); 107 107 return *this; 108 108 } … … 117 117 PolyImpl& operator*=(const Number & n){ 118 118 if (r!=n.r){ 119 Werror ("not the same ring");119 WerrorS("not the same ring"); 120 120 return *this; 121 121 } … … 126 126 PolyImpl& operator-=(const PolyImpl & p2){ 127 127 if (r!=p2.r){ 128 Werror ("not the same ring");128 WerrorS("not the same ring"); 129 129 return *this; 130 130 } -
kernel/preimage.cc
re64221 r7b9b8e5 70 70 if ((rIsPluralRing(sourcering)) && (ncRingType(sourcering)!=nc_comm)) 71 71 { 72 Werror ("Sorry, not yet implemented for noncomm. rings");72 WerrorS("Sorry, not yet implemented for noncomm. rings"); 73 73 return NULL; 74 74 } … … 96 96 { 97 97 /// TODO: there might be extreme cases where this doesn't hold... 98 Werror ("Coefficient fields/rings must be equal");98 WerrorS("Coefficient fields/rings must be equal"); 99 99 return NULL; 100 100 } -
libpolys/coeffs/numbers.cc
re64221 r7b9b8e5 261 261 { 262 262 CanonicalForm term(0); 263 Werror ("no conversion to factory");263 WerrorS("no conversion to factory"); 264 264 return term; 265 265 } … … 267 267 static number ndConvFactoryNSingN( const CanonicalForm, const coeffs) 268 268 { 269 Werror ("no conversion from factory");269 WerrorS("no conversion from factory"); 270 270 return NULL; 271 271 } -
libpolys/polys/monomials/p_polys.cc
re64221 r7b9b8e5 3878 3878 { 3879 3879 assume (FALSE); 3880 Werror ("Number permutation is not implemented for this data yet!");3880 WerrorS("Number permutation is not implemented for this data yet!"); 3881 3881 return NULL; 3882 3882 } -
libpolys/polys/nc/old.gring.cc
re64221 r7b9b8e5 1465 1465 { 1466 1466 #ifdef PDEBUG 1467 Werror ("gnc_ReduceSpolyNew: different non-zero components!");1467 WerrorS("gnc_ReduceSpolyNew: different non-zero components!"); 1468 1468 #endif 1469 1469 return(NULL); … … 1633 1633 { 1634 1634 #ifdef PDEBUG 1635 Werror ("gnc_CreateSpolyNew: different non-zero components!");1635 WerrorS("gnc_CreateSpolyNew: different non-zero components!"); 1636 1636 assume(0); 1637 1637 #endif … … 1743 1743 p_Write(m2, r); 1744 1744 1745 Werror ("ERROR in nc_CreateSpoly: result of multiplication is Zero!\n");1745 WerrorS("ERROR in nc_CreateSpoly: result of multiplication is Zero!\n"); 1746 1746 #endif 1747 1747 return(NULL); … … 1950 1950 { 1951 1951 #ifdef PDEBUG 1952 Werror ("nc_CreateShortSpoly: wrong module components!"); // !!!!1952 WerrorS("nc_CreateShortSpoly: wrong module components!"); // !!!! 1953 1953 #endif 1954 1954 return(NULL); … … 2019 2019 2020 2020 #ifdef KDEBUG 2021 if( !kbTest(b) ) Werror("nc_kBucketPolyRed: broken bucket!");2021 if( !kbTest(b) ) WerrorS("nc_kBucketPolyRed: broken bucket!"); 2022 2022 #endif 2023 2023 … … 2598 2598 // { 2599 2599 //#ifdef PDEBUF 2600 // Werror ("nc_p_CopyGet call not in currRing");2600 // WerrorS("nc_p_CopyGet call not in currRing"); 2601 2601 //#endif 2602 2602 // return(NULL); … … 2619 2619 // { 2620 2620 //#ifdef PDEBUF 2621 // Werror ("nc_p_CopyGet call not in currRing");2621 // WerrorS("nc_p_CopyGet call not in currRing"); 2622 2622 //#endif 2623 2623 // return(NULL); … … 2879 2879 if (!p_IsConstant(CN,curr)) 2880 2880 { 2881 Werror ("Incorrect input : non-constants are not allowed as coefficients (first argument)");2881 WerrorS("Incorrect input : non-constants are not allowed as coefficients (first argument)"); 2882 2882 return TRUE; 2883 2883 } … … 2887 2887 if (n_IsZero(nN, curr)) 2888 2888 { 2889 Werror ("Incorrect input : zero coefficients are not allowed");2889 WerrorS("Incorrect input : zero coefficients are not allowed"); 2890 2890 2891 2891 // if( currRing != save ) … … 2945 2945 // find also illegal pN 2946 2946 { 2947 Werror ("Incorrect input : matrix of coefficients contains zeros in the upper triangle");2947 WerrorS("Incorrect input : matrix of coefficients contains zeros in the upper triangle"); 2948 2948 2949 2949 // if( currRing != save ) … … 3046 3046 if( bDnew ) mp_Delete( &D, r ); 3047 3047 3048 Werror ("Matrix of polynomials violates the ordering condition");3048 WerrorS("Matrix of polynomials violates the ordering condition"); 3049 3049 3050 3050 // if( currRing != save ) … … 3386 3386 if ((shift<0) || (shift > rVar(srcRing))) // ??? 3387 3387 { 3388 Werror ("bad shifts in p_CopyEmbed");3388 WerrorS("bad shifts in p_CopyEmbed"); 3389 3389 return(0); 3390 3390 }
Note: See TracChangeset
for help on using the changeset viewer.