Changeset 4042 for zzuf/trunk/src
- Timestamp:
- Nov 26, 2009, 2:14:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/lib-stream.c
r4041 r4042 527 527 DEBUG_STREAM("old", stream); \ 528 528 oldpos = MYFTELL(stream); \ 529 _zz_setpos(fd, oldpos); \ 529 530 _zz_lock(fd); \ 530 531 ret = ORIG(myfread)(ptr, size, nmemb, stream); \ … … 580 581 return ORIG(myfgetc)(arg); \ 581 582 DEBUG_STREAM("old", s); \ 583 _zz_setpos(fd, MYFTELL(s)); \ 582 584 _zz_lock(fd); \ 583 585 ret = ORIG(myfgetc)(arg); \ … … 694 696 return ORIG(myfgets)(s, size, stream); \ 695 697 DEBUG_STREAM("old", s); \ 698 _zz_setpos(fd, MYFTELL(stream)); \ 696 699 FGETS_FUZZ(myfgets, myfgetc) \ 697 700 debug("%s(%p, %i, [%i]) = %p", __func__, s, size, fd, ret); \ … … 725 728 726 729 DEBUG_STREAM("old", stream); 730 _zz_setpos(fd, MYFTELL(stream)); 727 731 _zz_lock(fd); 728 732 ret = ORIG(ungetc)(c, stream); … … 791 795 } \ 792 796 DEBUG_STREAM("old", stream); \ 797 _zz_setpos(fd, MYFTELL(stream)); \ 793 798 line = *lineptr; \ 794 799 size = line ? *n : 0; \ … … 885 890 _zz_unlock(fd); 886 891 #else 892 _zz_setpos(fd, MYFTELL(stream)); 887 893 fuzz = _zz_getfuzz(fd); 888 894
Note: See TracChangeset
for help on using the changeset viewer.