Changeset 52f95b in git


Ignore:
Timestamp:
Aug 7, 2013, 5:20:45 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'a7324b6e0b44a1a8ed3fa4d9ca3e2ff210ddd52c')
Children:
46e869cc5ffe6ff2378166330f78fca4a2bb2f0d
Parents:
0509a99879516c51900bcab0307422a7b2214004
Message:
fix: removed MPSR stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ssiLink.cc

    r0509a99 r52f95b  
    4545#include <Singular/links/s_buff.h>
    4646#include <Singular/links/ssiLink.h>
    47 
    48 #ifdef HAVE_MPSR
    49 #include <Singular/mpsr.h>
    50 #endif
    5147
    5248#ifdef HAVE_SIMPLEIPC
     
    14911487  si_link l;
    14921488  ssiInfo *d;
    1493   #ifdef HAVE_MPSR
    1494   MP_Link_pt dd;
    1495   #endif
    14961489  int d_fd;
    14971490  fd_set  mask, fdmask;
     
    15361529        && (strcmp(l->mode,"launch")!=0) && (strcmp(l->mode,"connect")!=0)))
    15371530      {
    1538         WerrorS("all links must be of type ssi:fork, ssi:tcp, ssi:connect,");
    1539         WerrorS(" MPtcp:fork or MPtcp:launch");
     1531        WerrorS("all links must be of type ssi:fork, ssi:tcp, ssi:connect");
    15401532        return -2;
    15411533      }
    1542     #ifdef HAVE_MPSR
    15431534      if (strcmp(l->m->type,"ssi")==0)
    15441535      {
     
    15551546      else
    15561547      {
    1557         dd=(MP_Link_pt)l->data;
    1558         d_fd=((MP_TCP_t *)dd->transp.private1)->sock;
    1559         FD_SET(d_fd, &fdmask);
    1560         if (d_fd > max_fd) max_fd=d_fd;
    1561       }
    1562     #else
    1563       d=(ssiInfo*)l->data;
    1564       d_fd=d->fd_read;
    1565       if (!s_isready(d->f_read))
    1566       {
    1567         FD_SET(d_fd, &fdmask);
    1568         if (d_fd > max_fd) max_fd=d_fd;
    1569       }
    1570       else
    1571         return i+1;
    1572     #endif
     1548        Werror("wrong link type >>%s<<",l->m->type);
     1549        return -2;
     1550      }
    15731551    }
    15741552  }
     
    16131591      {
    16141592        l=(si_link)L->m[i].Data();
    1615         #ifdef HAVE_MPSR
    1616         if (strcmp(l->m->type,"ssi")!=0)
    1617         {
    1618           // for MP links, return here:
    1619           dd=(MP_Link_pt)l->data;
    1620           d_fd=((MP_TCP_t *)dd->transp.private1)->sock;
    1621           if(j==d_fd) return i+1;
    1622         }
    1623         else
     1593        if (strcmp(l->m->type,"ssi")==0)
    16241594        {
    16251595          d=(ssiInfo*)l->data;
     
    16271597          if(j==d_fd) break;
    16281598        }
    1629         #else
    1630         d=(ssiInfo*)l->data;
    1631         d_fd=d->fd_read;
    1632         if(j==d_fd) break;
    1633         #endif
     1599        else
     1600        {
     1601          Werror("wrong link type >>%s<<",l->m->type);
     1602          return -2;
     1603        }
    16341604      }
    16351605    }
Note: See TracChangeset for help on using the changeset viewer.