Changeset 87cf50 in git


Ignore:
Timestamp:
Nov 29, 1999, 3:46:55 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8542c2b8dfa68b83e4a8a7a4be5a4d20e52ff585
Parents:
21959cfde99e2b34993ef4bb1a03e6b58939bf78
Message:
*hannes: spectrum stuff: semic


git-svn-id: file:///usr/local/Singular/svn/trunk@3938 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r21959c r87cf50  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.121 1999-11-24 18:50:36 obachman Exp $ */
     4/* $Id: extra.cc,v 1.122 1999-11-29 14:46:53 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    326326        return FALSE;
    327327      }
    328      
     328
    329329      feOptIndex opt = feGetOptIndex(&sys_cmd[2]);
    330330      if (opt == FE_OPT_UNDEF)
     
    334334        return TRUE;
    335335      }
    336      
    337       // for Untyped Options (help version), 
     336
     337      // for Untyped Options (help version),
    338338      // setting it just triggers action
    339339      if (feOptSpec[opt].type == feOptUntyped)
     
    342342        return FALSE;
    343343      }
    344      
     344
    345345      if (h == NULL)
    346346      {
     
    360360        return FALSE;
    361361      }
    362      
    363       if (h->Typ() != STRING_CMD && 
     362
     363      if (h->Typ() != STRING_CMD &&
    364364          h->Typ() != INT_CMD)
    365365      {
     
    376376        }
    377377        errormsg = feSetOptValue(opt, (int) h->Data());
    378         if (errormsg != NULL) 
     378        if (errormsg != NULL)
    379379          Werror("Option '--%s=%d' %s", sys_cmd, (int) h->Data(), errormsg);
    380380      }
     
    507507   else
    508508   {
     509/*==================== semic =============================*/
     510   if(strcmp(sys_cmd,"semic") == 0)
     511   {
     512     if ((h->next!=NULL)
     513     && (h->Typ()==LIST_CMD)
     514     && (h->next->Typ()==LIST_CMD))
     515     {
     516       if (h->next->next==NULL)
     517         return semicProc(res,h,h->next);
     518       else if (h->next->next->Typ()==INT_CMD)
     519         return semicProc3(res,h,h->next,h->next->next);
     520     }
     521     return TRUE;
     522   }
     523   else
     524   {
    509525   #endif
    510526/*================= Extended system call ========================*/
     
    543559      if (h->Typ()==NUMBER_CMD )
    544560      {
    545         if ( h->next!=NULL && h->next->Typ()==INT_CMD )
    546         {
    547           if ( !rField_is_long_C() )
    548             {
    549               Werror( "unsupported ground field!");
    550               return TRUE;
    551             }
    552           else
    553             {
    554               res->rtyp=INT_CMD;
    555               res->data=(void*)complexNearZero((gmp_complex*)h->Data(),(int)h->next->Data());
    556               return FALSE;
    557             }
    558         }     
    559         else
    560         {
    561           Werror( "expected <int> as third parameter!");
    562           return TRUE;
    563         }
    564       }
    565       else
    566       {
    567         Werror( "expected <number> as second parameter!");
    568         return TRUE;
     561        if ( h->next!=NULL && h->next->Typ()==INT_CMD )
     562        {
     563          if ( !rField_is_long_C() )
     564            {
     565              Werror( "unsupported ground field!");
     566              return TRUE;
     567            }
     568          else
     569            {
     570              res->rtyp=INT_CMD;
     571              res->data=(void*)complexNearZero((gmp_complex*)h->Data(),(int)h->next->Data());
     572              return FALSE;
     573            }
     574        }
     575        else
     576        {
     577          Werror( "expected <int> as third parameter!");
     578          return TRUE;
     579        }
     580      }
     581      else
     582      {
     583        Werror( "expected <number> as second parameter!");
     584        return TRUE;
    569585      }
    570586    }
     
    574590      if ( !rField_is_long_C() && !rField_is_long_R() )
    575591      {
    576         Werror( "unsupported ground field!");
    577         return TRUE;
     592        Werror( "unsupported ground field!");
     593        return TRUE;
    578594      }
    579595      res->rtyp=INT_CMD;
     
    599615    {
    600616#ifdef MLIST
    601       FILE *fd = NULL; 
     617      FILE *fd = NULL;
    602618      if ((h!=NULL) &&(h->Typ()==STRING_CMD))
    603619      {
     
    610626      return FALSE;
    611627#else
    612      WerrorS("mtrack not supported without MLIST"); 
     628     WerrorS("mtrack not supported without MLIST");
    613629     return TRUE;
    614 #endif     
     630#endif
    615631    }
    616632    else
  • Singular/iparith.cc

    r21959c r87cf50  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.191 1999-11-24 18:13:21 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.192 1999-11-29 14:46:54 Singular Exp $ */
    55
    66/*
     
    284284  { "size",        0, COUNT_CMD ,         CMD_1},
    285285  { "sortvec",     0, SORTVEC_CMD ,       CMD_1},
    286   #ifdef HAVE_SPECTRUM
    287   { "semic",       0, SEMIC_CMD ,         CMD_23},
    288   #endif
    289286  #ifdef OLD_RES
    290287  { "sres",        0, SRES_CMD ,          CMD_23},
     
    22952292,{jjSIMPL_ID,  SIMPLIFY_CMD,   IDEAL_CMD,      IDEAL_CMD,  INT_CMD PROFILER}
    22962293,{jjSIMPL_ID,  SIMPLIFY_CMD,   MODUL_CMD,      MODUL_CMD,  INT_CMD PROFILER}
    2297 #ifdef HAVE_SPECTRUM
    2298 ,{semicProc,   SEMIC_CMD,      INT_CMD,        LIST_CMD,   LIST_CMD PROFILER}
    2299 #endif
    23002294//,{jjRES,       SRES_CMD,       LIST_CMD,       IDEAL_CMD,  INT_CMD PROFILER}
    23012295//,{jjRES,       SRES_CMD,       LIST_CMD,       MODUL_CMD,  INT_CMD PROFILER}
     
    43384332,{jjRING3,          RING_CMD,   RING_CMD,   DEF_CMD,    DEF_CMD,    DEF_CMD }
    43394333#ifdef HAVE_SPECTRUM
    4340 ,{semicProc3,       SEMIC_CMD,  INT_CMD,    LIST_CMD,   LIST_CMD,   INT_CMD }
    43414334,{spectrumOp3,      SPECTRUM_CMD, LIST_CMD, LIST_CMD,   STRING_CMD, INT_CMD }
    43424335,{spectrumOp3,      SPECTRUM_CMD, LIST_CMD, LIST_CMD,   STRING_CMD, LIST_CMD }
  • Singular/tok.h

    r21959c r87cf50  
    77* ABSTRACT: tokens, types for interpreter; general macros
    88*/
    9 /* $Id: tok.h,v 1.32 1999-11-24 18:13:23 Singular Exp $ */
     9/* $Id: tok.h,v 1.33 1999-11-29 14:46:55 Singular Exp $ */
    1010
    1111#ifndef MYYSTYPE
     
    106106  RESULTANT_CMD,
    107107  ROWS_CMD,
    108 #ifdef HAVE_SPECTRUM
    109   SEMIC_CMD,
    110 #endif
    111108  SQR_FREE_DEC_CMD,
    112109  STATUS_CMD,
Note: See TracChangeset for help on using the changeset viewer.