Changeset 9f8f6a in git


Ignore:
Timestamp:
Sep 13, 2010, 10:23:30 AM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
200e65d0b5196ecb3020dc53a5e6852670566654
Parents:
42c4e658858c01367282a42ae3c0f0dd19c497d6
Message:
mpz_out_str/mpz_inp_str

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

Legend:

Unmodified
Added
Removed
  • Singular/ssiLink.cc

    r42c4e6 r9f8f6a  
    1818#include <netinet/in.h>
    1919#include <ctype.h>   /*for isdigit*/
    20 #include <unistd.h>
    2120#include <netdb.h>
    2221
     
    9089  else if (n->s==3)
    9190  {
    92     gmp_fprintf(d->f_write,"3 %Zd ",n->z);
     91    fprintf(d->f_write,"3 ");
     92    mpz_out_str(d->f_write,10,n->z);
     93    fprintf(d->f_write," ");
     94    //gmp_fprintf(d->f_write,"3 %Zd ",n->z);
    9395    //if (d->f_debug!=NULL) gmp_fprintf(d->f_debug,"bigint: gmp \"%Zd\" ",n->z);
    9496  }
     
    251253     {// read int or mpz_t or mpz_t, mpz_t
    252254       number n=nlRInit(0);
    253        gmp_fscanf(d->f_read,"%Zd",n->z);
     255       mpz_inp_str(n->z,d->f_read,0);
    254256       n->s=sub_type;
    255257       return n;
Note: See TracChangeset for help on using the changeset viewer.