Changeset 53bb688 in git for Singular/extra.cc


Ignore:
Timestamp:
Jun 8, 1998, 1:09:39 PM (26 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
5d13bc042002355528aed03319748eb38cd2aca4
Parents:
84c4718ded5fe98bf8773067260f6b654941baca
Message:
Extended System-calls in its own procedure


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r84c471 r53bb688  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.52 1998-06-03 14:25:39 pohl Exp $ */
     4/* $Id: extra.cc,v 1.53 1998-06-08 11:09:39 krueger Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    5151
    5252// Define to enable many more system commands
    53 // #define HAVE_EXTENDED_SYSTEM
     53//#define HAVE_EXTENDED_SYSTEM
    5454
    5555#ifdef STDTRACE
     
    8686
    8787void piShowProcList();
     88static BOOLEAN EXTENDED_SYSTEM(leftv res, leftv h);
     89
    8890
    8991//void emStart();
     
    360362     return FALSE;
    361363   }
     364   else
     365   {
     366#ifdef HAVE_EXTENDED_SYSTEM
     367/*================= Extended system call ========================*/
     368     return(EXTENDED_SYSTEM(res, h));
     369#else
     370     WerrorS( feNotImplemented );
     371#endif
     372   }
     373  } /* typ==string */
     374  return TRUE;
     375}
     376
     377 
     378
    362379#ifdef HAVE_EXTENDED_SYSTEM
    363380// You can put your own system calls here
     381#include "fglmcomb.cc"
     382#include "fglm.h"
     383static BOOLEAN EXTENDED_SYSTEM(leftv res, leftv h)
     384{
     385  if(h->Typ() == STRING_CMD)
     386  {
    364387/*==================== LaScala ==================================*/
    365388    if(strcmp((char*)(h->Data()),"LaScala")==0)
     
    593616    if(strcmp((char*)(h->Data()),"fastcomb")==0)
    594617    {
    595 #include "fglmcomb.cc"
    596 #include "fglm.h"
    597618      if ((h->next!=NULL) &&(h->next->Typ()==IDEAL_CMD))
    598619      {
     
    616637    if(strcmp((char*)(h->Data()),"comb")==0)
    617638    {
    618 #include "fglmcomb.cc"
    619 #include "fglm.h"
    620639      if ((h->next!=NULL) &&(h->next->Typ()==IDEAL_CMD))
    621640      {
     
    799818    else
    800819#endif
    801 #endif // HAVE_EXTENDED_SYSTEM
    802 /*============================================================*/
    803820      WerrorS( feNotImplemented );
    804821  }
    805822  return TRUE;
    806823}
     824#endif // HAVE_EXTENDED_SYSTEM
     825/*============================================================*/
Note: See TracChangeset for help on using the changeset viewer.