source: git/libpolys/reporter/s_buff.h @ b9d42e

fieker-DuValspielwiese
Last change on this file since b9d42e was 850277, checked in by Hans Schoenemann <hannes@…>, 10 years ago
chg: moved reading/writing numbers via ssi to coeffs (p.1)
  • Property mode set to 100644
File size: 728 bytes
Line 
1#ifndef S_BUFFIO_H
2#define S_BUFFIO_H
3
4#include<signal.h>
5#include<gmp.h>
6
7struct s_buff_s
8{
9    char * buff; // buffer
10    int fd;      // file descrr.
11    int bp;      // current pos. in buff (of the last read char)
12    int end;     // last position in buff
13    int is_eof;
14};
15
16typedef struct s_buff_s * s_buff;
17
18s_buff s_open(int fd);
19s_buff s_open_by_name(const char *n);
20int    s_free(s_buff &f);
21int    s_close(s_buff &f);
22
23int s_getc(s_buff F);
24void s_ungetc(int c, s_buff F);
25
26int s_readint(s_buff F);
27long s_readlong(s_buff F);
28int s_readbytes(char *buff,int len, s_buff F);
29void s_readmpz(s_buff F, mpz_ptr a);
30void s_readmpz_base(s_buff F, mpz_ptr a, int base);
31int s_isready(s_buff F);
32int s_iseof(s_buff F);
33#endif
Note: See TracBrowser for help on using the repository browser.