Changeset b2a49b in git


Ignore:
Timestamp:
Sep 27, 1999, 7:54:57 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a6312edfb1f70ae85db1956e81afaabf54b79df1
Parents:
793a4da836b9a776100b320e7295d47093670104
Message:
*hannes: cannot kill proc which are in use


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/general.lib

    r793a4d rb2a49b  
    1 // $Id: general.lib,v 1.20 1999-09-23 12:13:38 Singular Exp $
     1// $Id: general.lib,v 1.21 1999-09-27 17:54:57 Singular Exp $
    22//GMG, last modified 18.6.99
    33///////////////////////////////////////////////////////////////////////////////
    44
    5 version="$Id: general.lib,v 1.20 1999-09-23 12:13:38 Singular Exp $";
     5version="$Id: general.lib,v 1.21 1999-09-27 17:54:57 Singular Exp $";
    66info="
    77LIBRARY:  general.lib   PROCEDURES OF GENERAL TYPE
     
    434434          for ( joni=size(L); joni>0; joni-- )
    435435          {
    436              if( L[joni]=="LIB" or typeof(`L[joni]`)=="proc" )
     436             if((L[joni]!="killall") and (L[joni]=="LIB" or typeof(`L[joni]`)=="proc"))
    437437               { kill `L[joni]`; }
    438438          }
  • Singular/ipid.cc

    r793a4d rb2a49b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.33 1999-07-06 13:35:32 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.34 1999-09-27 17:54:55 Singular Exp $ */
    55
    66/*
     
    210210  tmp.name=IDID(this);
    211211  return tmp.String();
    212 
    213 
     212}
    214213
    215214//#define KAI
     
    479478  else if (IDTYP(h) == PROC_CMD)
    480479  {
    481     piKill(IDPROC(h));
     480    if (piKill(IDPROC(h))) return;
    482481  }
    483482  // number -------------------------------------------------------------
     
    722721}
    723722
    724 void piKill(procinfov pi)
    725 {
     723BOOLEAN piKill(procinfov pi)
     724{
     725  Voice *p=currentVoice;
     726  while (p!=NULL)
     727  {
     728    if (p->pi==pi)
     729    {
     730      Warn("`%s` in use, can not be killed",pi->procname);
     731      return TRUE;
     732    }
     733    p=p->next;
     734  }
    726735  piCleanUp(pi);
    727736  if (pi->ref <= 0)
    728737    Free((ADDRESS)pi, sizeof(procinfo));
     738  return FALSE;
    729739}
    730740
  • Singular/subexpr.h

    r793a4d rb2a49b  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: subexpr.h,v 1.21 1999-09-17 11:42:26 Singular Exp $ */
     6/* $Id: subexpr.h,v 1.22 1999-09-27 17:54:56 Singular Exp $ */
    77/*
    88* ABSTRACT: handling of leftv
     
    155155  return pi;
    156156}
    157 void piKill(procinfov l);
     157BOOLEAN piKill(procinfov l);
    158158char *piProcinfo(procinfov pi, char *request);
    159159void piShowProcinfo(procinfov pi, char *txt);
Note: See TracChangeset for help on using the changeset viewer.