123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- struct __sfileext {
- struct __sbuf _ub;
- struct wchar_io_data _wcio;
- };
- #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base))
- #define _UB(fp) _EXT(fp)->_ub
- #define _FILEEXT_INIT(fp) \
- do { \
- _UB(fp)._base = NULL; \
- _UB(fp)._size = 0; \
- WCIO_INIT(fp); \
- } while (0)
- #define _FILEEXT_SETUP(f, fext) \
- do { \
- (f)->_ext._base = (unsigned char *)(fext); \
- _FILEEXT_INIT(f); \
- } while (0)
|