cvs commit: src/include stdio.h src/lib/libc/stdio clrerr.c feof.c ferror.c fileno.c getc.c getchar.c local.h putc.c putchar.c xprintf.c

Peter Jeremy peterjeremy at optushome.com.au
Thu May 8 07:40:46 UTC 2008


On Wed, May 07, 2008 at 03:04:50PM -0700, Maxim Sobolev wrote:
>Can you please explain the "needed" part?

- The file struct is in two pieces: struct __sFILE and struct __sFILEX
  This is at best a wart.
- stdio currently only supports file descriptors <=32767.

> What are gains apart from pure aesthetics

"data-hiding" is a standard technique.  Making FILE opaque means that
future changes can be made without impacting altering the ABI.

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20080508/4a9aa82c/attachment.pgp


More information about the cvs-src mailing list