X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=internals%2F_PDCLIB_io.h;h=27c33e7dd7a50d360ee58710bacfee8213ed524d;hb=d7f375a09a9912bb18ad42f1442fbf64311bfed6;hp=2df3ff5ca6dd1b31927a32abd8097938acef24d6;hpb=8ca96563618e4dd6cd092533711e4188c846c418;p=pdclib diff --git a/internals/_PDCLIB_io.h b/internals/_PDCLIB_io.h index 2df3ff5..27c33e7 100644 --- a/internals/_PDCLIB_io.h +++ b/internals/_PDCLIB_io.h @@ -1,14 +1,15 @@ -#ifndef __PDCLIB_IO_H -#define __PDCLIB_IO_H __PDCLIB_IO_H -#include "_PDCLIB_int.h" -#include "_PDCLIB_threadconfig.h" - -/* PDCLib internal I/O logic <_PDCLIB_io.h> +/* PDCLib I/O support <_PDCLIB_io.h> This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ +#ifndef __PDCLIB_IO_H +#define __PDCLIB_IO_H __PDCLIB_IO_H + +#include "_PDCLIB_int.h" +#include "_PDCLIB_threadconfig.h" + /* Flags for representing mode (see fopen()). Note these must fit the same status field as the _IO?BF flags in and the internal flags below. */ @@ -179,6 +180,9 @@ struct _PDCLIB_file _PDCLIB_size_t bufsize; /* Size of buffer */ _PDCLIB_size_t bufidx; /* Index of current position in buffer */ _PDCLIB_size_t bufend; /* Index of last pre-read character in buffer */ +#ifdef _PDCLIB_NEED_EOL_TRANSLATION + _PDCLIB_size_t bufnlexp; /* Current position of buffer newline expansion */ +#endif _PDCLIB_size_t ungetidx; /* Number of ungetc()'ed characters */ unsigned char * ungetbuf; /* ungetc() buffer */ unsigned int status; /* Status flags; see above */