spielwiese
Last change
on this file since df326b was
df326b,
checked in by Oleksandr Motsak <motsak@…>, 11 years ago
|
Updates due to master (links) + SW adaptation/separation
|
-
Property mode set to
100644
|
File size:
787 bytes
|
Rev | Line | |
---|
[00e336] | 1 | #ifndef S_BUFFIO_H |
---|
| 2 | #define S_BUFFIO_H |
---|
| 3 | |
---|
| 4 | #include<signal.h> |
---|
| 5 | |
---|
| 6 | struct s_buff_s |
---|
| 7 | { |
---|
| 8 | char * buff; // buffer |
---|
| 9 | int fd; // file descrr. |
---|
| 10 | int bp; // current pos. in buff (of the last read char) |
---|
| 11 | int end; // last position in buff |
---|
| 12 | int is_eof; |
---|
| 13 | }; |
---|
| 14 | |
---|
| 15 | typedef struct s_buff_s * s_buff; |
---|
| 16 | |
---|
| 17 | s_buff s_open(int fd); |
---|
| 18 | s_buff s_open_by_name(const char *n); |
---|
| 19 | int s_close(s_buff &f); |
---|
| 20 | |
---|
| 21 | int s_getc(s_buff F); |
---|
| 22 | void s_ungetc(int c, s_buff F); |
---|
| 23 | |
---|
| 24 | int s_readint(s_buff F); |
---|
[df326b] | 25 | long s_readlong(s_buff F); |
---|
[00e336] | 26 | int s_readbytes(char *buff,int len, s_buff F); |
---|
| 27 | void s_readmpz(s_buff F, mpz_ptr a); |
---|
| 28 | void s_readmpz_base(s_buff F, mpz_ptr a, int base); |
---|
| 29 | int s_isready(s_buff F); |
---|
| 30 | int s_iseof(s_buff F); |
---|
| 31 | |
---|
| 32 | extern sigset_t ssi_sigmask; // set in ssiLink.cc |
---|
| 33 | extern sigset_t ssi_oldmask; // set in ssiLink.cc |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.