Mail Archives: djgpp-workers/2002/06/26/22:04:36
Martin Str|mberg wrote:
>
> This is in <stdio.h>:
>
> /* Note that the definitions of these fields are NOT guaranteed! They
> may change with any release without notice! The fact that they
> are here at all is to comply with ANSI specifictions. */
>
> typedef struct {
> int _cnt;
> char *_ptr;
> char *_base;
> size_t _bufsiz;
> int _flag;
> int _file;
> char *_name_to_remove;
> size_t _fillsize;
> } FILE;
>
> It looks like there's no requirement to reveal the insides of
> FILE in C99.
>
> Do we want it made into an opaque type?
>
> Or if I'm wrong, could somebody point out where in the C
> standard the requirement is?
I think it is for practical and implied reasons, rather than
specification. Without having those fields available it would be
hard to build an efficient getc macro, for example.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -