Changeset 7d1232 in git for Singular


Ignore:
Timestamp:
Apr 27, 2012, 1:26:06 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
944a5ac946e2f8544123239e3a920b7d77e718e1
Parents:
7627f67da8dc2c135f659c4e3f2ef25e3de4f00e
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-04-27 13:26:06+02:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2013-09-13 16:35:28+02:00
Message:
experimental: several links to the same port
(cherry picked from commit 0e368b1eaeedc0d3bf686832d825f5da7bc3a81b)

Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>

Conflicts:
	Singular/extra.cc
	Singular/links/ssiLink.cc (changes already ported)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r7627f6 r7d1232  
    38443844  }
    38453845  else
     3846/*==================== reserved port =================*/
     3847  if (strcmp(sys_cmd,"reserve")==0)
     3848  {
     3849    int ssiReservePort(int clients);
     3850    if ((h!=NULL) && (h->Typ()==INT_CMD))
     3851    {
     3852      res->rtyp=INT_CMD;
     3853      int p=ssiReservePort((int)(long)h->Data());
     3854      res->data=(void*)(long)p;
     3855      return (p==0);
     3856    }
     3857    else
     3858    {
     3859      WerrorS("system(\"reserve\",<int>)");
     3860    }
     3861    return TRUE;
     3862  }
     3863  else
     3864  if (strcmp(sys_cmd,"reservedLink")==0)
     3865  {
     3866    si_link ssiCommandLink();
     3867    res->rtyp=LINK_CMD;
     3868    si_link p=ssiCommandLink();
     3869    res->data=(void*)p;
     3870    return (p==NULL);
     3871  }
     3872  else
    38463873  /*==================== Test Boos Epure ==================================*/
    38473874  if (strcmp(sys_cmd, "Hallo")==0)
Note: See TracChangeset for help on using the changeset viewer.