Changeset 5d32fd in git for Singular/extra.cc


Ignore:
Timestamp:
Nov 24, 1999, 7:13:23 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4b72f66b46b8b566048c1a700efc18093f7225f0
Parents:
e514ee03b6532cbf576ae3600314e75f2b3c5a8f
Message:
* hannes: move spectrum-stuff to a library and extra.cc, step I


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    re514ee r5d32fd  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.119 1999-11-24 17:09:34 Singular Exp $ */
     4/* $Id: extra.cc,v 1.120 1999-11-24 18:13:20 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    5252#include "distrib.h"
    5353#include "prCopy.h"
     54#ifdef HAVE_SPECTRUM
     55#include "spectrum.h"
     56#endif
     57
    5458
    5559// Define to enable many more system commands
     
    441445   else
    442446   {
     447/*==================== spectrum =============================*/
     448   #ifdef HAVE_SPECTRUM
     449   if(strcmp(sys_cmd,"spectrum") == 0)
     450   {
     451     if (h->Typ()!=POLY_CMD)
     452     {
     453       WerrorS("poly expected");
     454       return TRUE;
     455     }
     456     if (h->next==NULL)
     457       return spectrumProc(res,h);
     458     if (h->next->Typ()!=INT_CMD)
     459     {
     460       WerrorS("poly,int expected");
     461       return TRUE;
     462     }
     463     if(((int)h->next->Data())==1)
     464       return spectrumfProc(res,h);
     465     return spectrumProc(res,h);
     466   }
     467   else
     468   {
     469   #endif
    443470/*================= Extended system call ========================*/
    444471#ifdef HAVE_EXTENDED_SYSTEM
Note: See TracChangeset for help on using the changeset viewer.