diff options
Diffstat (limited to 'libgfortran/io/io.h')
-rw-r--r-- | libgfortran/io/io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/io/io.h b/libgfortran/io/io.h index 31b4927cb6e..0d2d795e198 100644 --- a/libgfortran/io/io.h +++ b/libgfortran/io/io.h @@ -62,6 +62,7 @@ typedef struct stream try (*truncate) (struct stream *); int (*read) (struct stream *, void *, size_t *); int (*write) (struct stream *, const void *, size_t *); + try (*set) (struct stream *, int, size_t); } stream; @@ -82,6 +83,8 @@ stream; #define sread(s, buf, nbytes) ((s)->read)(s, buf, nbytes) #define swrite(s, buf, nbytes) ((s)->write)(s, buf, nbytes) +#define sset(s, c, n) ((s)->set)(s, c, n) + /* The array_loop_spec contains the variables for the loops over index ranges that are encountered. Since the variables can be negative, ssize_t is used. */ |