Changeset 886606 in git


Ignore:
Timestamp:
May 8, 1998, 5:29:38 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
aa3811cefe42b733bb596d3122dbacbc2104727a
Parents:
fdf422fadae90bce781bd2fa4e3b5c9fe9dbe69f
Message:
*** empty log message ***


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    rfdf422f r886606  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.44 1998-05-08 14:17:21 obachman Exp $ */
     4/* $Id: extra.cc,v 1.45 1998-05-08 15:29:38 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    262262      BOOLEAN mainGetSingOptionValue(const char* name, char** result);
    263263      char* val;
    264      
     264
    265265      if (mainGetSingOptionValue(&((char*)(h->data))[2], &val))
    266266      {
     
    567567          if (h->next->next->Typ()!=POLY_CMD)
    568568          {
    569               Warn("Wrong types for poly= comb(ideal,poly)");
     569              Warn("Wrong types for poly= comb(ideal,poly)");
    570570          }
    571571        }
     
    588588          if (h->next->next->Typ()!=POLY_CMD)
    589589          {
    590               Warn("Wrong types for poly= comb(ideal,poly)");
     590              Warn("Wrong types for poly= comb(ideal,poly)");
    591591          }
    592592        }
     
    629629/*=======================gcd Testerei ================================*/
    630630    if ( ! strcmp( (char*)(h->Data()), "setgcd" ) ) {
    631         if ( (h->next != NULL) && (h->next->Typ() == INT_CMD) ) {
    632             CFPrimitiveGcdUtil::setAlgorithm( (int)h->next->Data() );
    633             return FALSE;
    634         } else
    635             WerrorS("int expected");
     631        if ( (h->next != NULL) && (h->next->Typ() == INT_CMD) ) {
     632            CFPrimitiveGcdUtil::setAlgorithm( (int)h->next->Data() );
     633            return FALSE;
     634        } else
     635            WerrorS("int expected");
    636636    }
    637637    else
     
    640640#ifdef FACTORY_GCD_TIMING
    641641    if ( ! strcmp( (char*)(h->Data()), "gcdtime" ) ) {
    642         TIMING_PRINT( contentTimer, "time used for content: " );
    643         TIMING_PRINT( algContentTimer, "time used for algContent: " );
    644         TIMING_PRINT( algLcmTimer, "time used for algLcm: " );
    645         TIMING_RESET( contentTimer );
    646         TIMING_RESET( algContentTimer );
    647         TIMING_RESET( algLcmTimer );
    648         return FALSE;
    649     }
    650     else
    651 #endif
    652      
     642        TIMING_PRINT( contentTimer, "time used for content: " );
     643        TIMING_PRINT( algContentTimer, "time used for algContent: " );
     644        TIMING_PRINT( algLcmTimer, "time used for algLcm: " );
     645        TIMING_RESET( contentTimer );
     646        TIMING_RESET( algContentTimer );
     647        TIMING_RESET( algLcmTimer );
     648        return FALSE;
     649    }
     650    else
     651#endif
     652
    653653#ifdef FACTORY_GCD_STAT
    654654    if ( ! strcmp( (char*)(h->Data()), "gcdstat" ) ) {
    655         printGcdTotal();
    656         printContTotal();
    657         resetGcdTotal();
    658         resetContTotal();
    659         return FALSE;
     655        printGcdTotal();
     656        printContTotal();
     657        resetGcdTotal();
     658        resetContTotal();
     659        return FALSE;
    660660    }
    661661    else
     
    687687      if ((hh!=NULL)&&(IDTYP(hh)==PACKAGE_CMD))
    688688      {
    689         namespaceroot = namespaceroot->push(IDPACKAGE(hh), IDID(hh));
    690         return FALSE;
    691       } else
     689        namespaceroot = namespaceroot->push(IDPACKAGE(hh), IDID(hh));
     690        return FALSE;
     691      }
     692      else
    692693        Warn("package `%s` not found",(char*)h->next->Data());
    693694    }
     
    705706      namehdl nshdl = namespaceroot;
    706707      for( ; nshdl->isroot != TRUE; nshdl = nshdl->next) {
    707         Print("NSstack: %s:%d\n", nshdl->name, nshdl->lev);
     708        Print("NSstack: %s:%d\n", nshdl->name, nshdl->lev);
    708709      }
    709710      Print("NSstack: %s:%d\n", nshdl->name, nshdl->lev);
     
    726727    {
    727728      if ((h->next!=NULL) && (h->next->Typ()==STRING_CMD)) {
    728         int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic,
    729                        BOOLEAN(*func)(leftv res, leftv v));
     729        int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic,
     730                       BOOLEAN(*func)(leftv res, leftv v));
    730731        int (*fktn)(int(*iiAddCproc)(char *libname, char *procname,
    731                                      BOOLEAN pstatic,
    732                                      BOOLEAN(*func)(leftv res, leftv v)));
     732                                     BOOLEAN pstatic,
     733                                     BOOLEAN(*func)(leftv res, leftv v)));
    733734        void *vp;
    734735        res->rtyp=STRING_CMD;
Note: See TracChangeset for help on using the changeset viewer.