Changeset 456842 in git for libfac/factor/Factor.cc


Ignore:
Timestamp:
Aug 8, 2001, 4:26:56 PM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'a7324b6e0b44a1a8ed3fa4d9ca3e2ff210ddd52c')
Children:
8444b045c3217f44893e92cc7acc9a1bc7595178
Parents:
14b1e65b4290df7e1f7dc6b926269dc204ea38a3
Message:
*hannes: Dan's HAVE_SINGULAR_ERROR


git-svn-id: file:///usr/local/Singular/svn/trunk@5573 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfac/factor/Factor.cc

    r14b1e65 r456842  
    11/* Copyright 1996 Michael Messollen. All rights reserved. */
    22///////////////////////////////////////////////////////////////////////////////
    3 static char * rcsid = "$Id: Factor.cc,v 1.9 2001-08-08 11:59:12 Singular Exp $ ";
     3static char * rcsid = "$Id: Factor.cc,v 1.10 2001-08-08 14:26:55 Singular Exp $ ";
    44static char * errmsg = "\nYou found a bug!\nPlease inform (Michael Messollen) michael@math.uni-sb.de \nPlease include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you.";
    55///////////////////////////////////////////////////////////////////////////////
     
    2323
    2424#ifdef SINGULAR
    25 #  define HAVE_SINGULAR
     25#define HAVE_SINGULAR_ERROR
     26#endif
     27
     28#ifdef HAVE_SINGULAR_ERROR
    2629   extern "C" { void WerrorS(char *); }
    27    extern  void WarnS(const char *);
     30   extern "C" { void WarnS(const char *); }
    2831#endif
    2932
     
    218221          }
    219222          else {
    220 #ifdef HAVE_SINGULAR
     223#ifdef HAVE_SINGULAR_ERROR
    221224            WerrorS("libfac: ERROR: not_monic1: case lt is a sum.");
    222225#else
     226#ifndef NOSTREAMIO
    223227            cerr << "libfac: ERROR: not_monic1: case lt is a sum.\n"
    224228                 << rcsid << errmsg << endl;
     229#endif
    225230#endif
    226231          }
     
    235240          Returnlist= myUnion( CFFList(CFFactor(1/a,1)),Returnlist) ;
    236241        else {
    237 #ifdef HAVE_SINGULAR
     242#ifdef HAVE_SINGULAR_ERROR
    238243          WerrorS("libfac: ERROR: not_monic2: case lt is a sum.");
    239244#else
     245#ifndef NOSTREAMIO
    240246          cerr << "libfac: ERROR: not_monic2: case lt is a sum.\n"
    241247               << rcsid << errmsg << endl;
     248#endif
    242249#endif
    243250        }
     
    324331    if ( degree(Extension) == 0 ) FFRandom gen;
    325332    else {
    326 #ifdef HAVE_SINGULAR
     333#ifdef HAVE_SINGULAR_ERROR
    327334    WerrorS("libfac: evaluate: Extension not inFF() or inGF() !");
    328335#else
     
    397404    }
    398405    else {
    399 #ifdef HAVE_SINGULAR
     406#ifdef HAVE_SINGULAR_ERROR
    400407      WerrorS("libfac: spezializePoly ERROR: Working over given extension-field not yet implemented!");
    401408#else
     409#ifndef NOSTREAMIO
    402410      cerr << "libfac: spezializePoly ERROR: Working over given extension-field not yet implemented!\n"
    403411           << rcsid << errmsg << endl;
     412#endif
    404413#endif
    405414      return 0;
     
    431440  else { if ( degree(Extension) == 0 ) FFRandom gen;
    432441  else {
    433 #ifdef HAVE_SINGULAR
     442#ifdef HAVE_SINGULAR_ERROR
    434443    WerrorS("libfac: evaluate: Extension not inFF() or inGF() !");
    435444#else
     445#ifndef NOSTREAMIO
    436446    cerr << "libfac: evaluate: " << Extension << " not inFF() or inGF() !"
    437447         << endl;
     448#endif
    438449#endif
    439450    FFRandom gen; }}
     
    619630    DEBOUTLN(cout,  "Returned from specializePoly: success: ", success);
    620631    if (success == 0 ){ // No spezialisation could be found
    621 #ifdef SINGULAR
     632#ifdef HAVE_SINGULAR_ERROR
    622633      WarnS("libfac: Factorize: ERROR: Not able to find a valid specialization!");
    623634#else
     635#ifndef NOSTREAMIO
    624636      cerr << "libfac: Factorize: ERROR: Not able to find a valid specialization!\n"
    625637           << rcsid << errmsg << endl;
     638#else
     639       ;
     640#endif
    626641#endif
    627642      Outputlist.append(CFFactor(F,1));
     
    828843/*
    829844$Log: not supported by cvs2svn $
     845Revision 1.9  2001/08/08 11:59:12  Singular
     846*hannes: Dan's NOSTREAMIO changes
     847
    830848Revision 1.8  2001/08/06 08:32:54  Singular
    831849* hannes: code cleanup
Note: See TracChangeset for help on using the changeset viewer.