view modules/fflush @ 40226:5b87a9bf7240

uninorm tests: Free allocated memory. * tests/uninorm/test-u32-normalize-big.h (struct normalization_test_file): Remove 'const' from allocated member. (free_normalization_test_file): New declaration. * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated memory. (free_normalization_test_file): New function. * tests/uninorm/test-u32-nfc-big.c (main): Free allocated 'struct normalization_test_file' contents. * tests/uninorm/test-u32-nfd-big.c (main): Likewise. * tests/uninorm/test-u32-nfkc-big.c (main): Likewise. * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 15:14:01 +0100
parents bbd2679d746e
children
line wrap: on
line source

Description:
Discard pending data on both input and output streams.

Files:
lib/fflush.c
lib/stdio-impl.h
m4/fflush.m4

Depends-on:
stdio
snippet/unused-parameter  [test $REPLACE_FFLUSH = 1]
fpurge                    [test $REPLACE_FFLUSH = 1]
ftello                    [test $REPLACE_FFLUSH = 1]
freading                  [test $REPLACE_FFLUSH = 1]
lseek                     [test $REPLACE_FFLUSH = 1]
unistd                    [test $REPLACE_FFLUSH = 1]
fseeko                    [test $REPLACE_FFLUSH = 1]

configure.ac-early:
AC_REQUIRE([AC_FUNC_FSEEKO])

configure.ac:
gl_FUNC_FFLUSH
if test $REPLACE_FFLUSH = 1; then
  AC_LIBOBJ([fflush])
  gl_PREREQ_FFLUSH
fi
gl_MODULE_INDICATOR([fflush])
gl_STDIO_MODULE_INDICATOR([fflush])

Makefile.am:

Include:
<stdio.h>

License:
LGPLv2+

Maintainer:
Eric Blake