Changeset 97c955 in git for Singular/links/ssiLink.cc
- Timestamp:
- Nov 29, 2013, 3:41:32 PM (10 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d349786aef1f8f2b89aa38d805322367d4c96364
- Parents:
- c42a9f75e7b92be96e4b082346d946500227e213
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-11-29 15:41:32+01:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-11-29 15:41:51+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/links/ssiLink.cc
rc42a9f r97c955 53 53 #include <Singular/si_signals.h> 54 54 55 #define SSI_VERSION 5 55 #define SSI_VERSION 6 56 // 5->6: changed newstruct representation 56 57 57 58 // 64 bit version: … … 163 164 { 164 165 mpz_t tmp; 165 166 mpz_init_set_si(tmp,nn); 166 167 fputs("8 ",d->f_write); 167 168 mpz_out_str (d->f_write,32, tmp); 168 169 fputc(' ',d->f_write); 169 170 mpz_clear(tmp); 170 171 } 171 172 #endif … … 434 435 { 435 436 LONG dd=s_readlong(d->f_read); 436 437 //#if SIZEOF_LONG == 8 437 438 return INT_TO_SR(dd); 438 439 440 439 //#else 440 //return nlInit(dd,NULL); 441 //#endif 441 442 } 442 443 case 5: … … 1230 1231 // we are in the top-level, so set the basering to d->r: 1231 1232 if (d->r!=NULL) 1232 1233 1233 { 1234 d->r->ref++; 1234 1235 ssiSetCurrRing(d->r); 1235 1236 } 1236 1237 if (t==15) return ssiRead1(l); 1237 1238 } … … 1289 1290 case 19: res->rtyp=BIGINTMAT_CMD; 1290 1291 res->data=ssiReadBigintmat(d); 1291 1292 break; 1292 1293 case 20: ssiReadBlackbox(res,l); 1293 1294 break; … … 1311 1312 #endif 1312 1313 si_opt_1=n98_o1; 1313 1314 si_opt_2=n98_o2; 1314 1315 return ssiRead1(l); 1315 1316 } … … 1332 1333 } 1333 1334 //**************************************************************************/ 1335 BOOLEAN ssiSetRing(si_link l, ring r, BOOLEAN send) 1336 { 1337 if(SI_LINK_W_OPEN_P(l)==0) 1338 if (slOpen(l,SI_LINK_OPEN|SI_LINK_WRITE,NULL)) return TRUE; 1339 ssiInfo *d = (ssiInfo *)l->data; 1340 if (d->r!=r) 1341 { 1342 if (send) 1343 { 1344 fputs("15 ",d->f_write); 1345 ssiWriteRing(d,r); 1346 } 1347 d->r=r; 1348 } 1349 if (currRing!=r) rChangeCurrRing(r); 1350 return FALSE; 1351 } 1352 //**************************************************************************/ 1353 1334 1354 BOOLEAN ssiWrite(si_link l, leftv data) 1335 1355 { … … 1463 1483 1464 1484 s->Status=slStatusSsi; 1485 s->SetRing=ssiSetRing; 1465 1486 s->type="ssi"; 1466 1487 return s; … … 2010 2031 // 19 bigintmat <r> <c> ... 2011 2032 // 2012 // 20 blackbox <name> ...2033 // 20 blackbox <name> 1 <len> ... 2013 2034 // 2014 2035 // 98: verify version: <ssi-version> <MAX_TOK> <OPT1> <OPT2>
Note: See TracChangeset
for help on using the changeset viewer.