Changeset 4029 for zzuf/trunk/src


Ignore:
Timestamp:
Nov 24, 2009, 2:25:44 AM (11 years ago)
Author:
Sam Hocevar
Message:

We need to know the FILE buffer's current fill status. Implemented for
glibc for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-stream.c

    r4013 r4029  
    166166#else
    167167    return NULL;
     168#endif
     169}
     170
     171static inline int get_stream_off(FILE *stream)
     172{
     173#if defined HAVE___FILBUF || defined HAVE___SRGET || defined HAVE___UFLOW
     174    return (int)((uint8_t *)stream->FILE_PTR - (uint8_t *)stream->FILE_BASE);
     175#else
     176    return 0;
    168177#endif
    169178}
Note: See TracChangeset for help on using the changeset viewer.