mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-19 12:42:33 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2fb148a290 | ||
![]() |
c8f0723d2b | ||
![]() |
008316aa29 | ||
![]() |
e4ab2c62cd | ||
![]() |
bf5573f86c |
@@ -13,7 +13,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
|
||||
|
||||
LIBBSD_ABI_MAJOR=0
|
||||
LIBBSD_ABI_MINOR=8
|
||||
LIBBSD_ABI_PATCH=1
|
||||
LIBBSD_ABI_PATCH=2
|
||||
|
||||
LIBBSD_ABI="$LIBBSD_ABI_MAJOR:$LIBBSD_ABI_MINOR:$LIBBSD_ABI_PATCH"
|
||||
AC_SUBST([LIBBSD_ABI])
|
||||
|
@@ -60,7 +60,7 @@ fgetwln(FILE *stream, size_t *lenp)
|
||||
fb->fp = stream;
|
||||
|
||||
while ((wc = fgetwc(stream)) != WEOF) {
|
||||
if (!fb->len || wused > fb->len) {
|
||||
if (!fb->len || wused >= fb->len) {
|
||||
wchar_t *wp;
|
||||
|
||||
if (fb->len)
|
||||
|
@@ -99,6 +99,8 @@ main(int argc, char **argv)
|
||||
/* XXX: We should probably FAIL the test, but we currently
|
||||
* have one test always failing. */
|
||||
rc = TEST_SKIP;
|
||||
} else {
|
||||
rc = TEST_OK;
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
@@ -12,14 +12,14 @@ incdir="${top_srcdir}/include/bsd"
|
||||
CPPFLAGS="$CPPFLAGS -DLIBBSD_OVERLAY"
|
||||
|
||||
for inc in $(cd $incdir; find -name '*.h' | sort | cut -c3-); do
|
||||
cat >headers-gen.c <<SOURCE
|
||||
cat >headers-overlay-gen.c <<SOURCE
|
||||
#include <$inc>
|
||||
int main() { return 0; }
|
||||
SOURCE
|
||||
|
||||
echo "testing header $inc"
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-gen.c -o /dev/null
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o /dev/null
|
||||
echo
|
||||
|
||||
rm -f headers-gen*
|
||||
rm -f headers-overlay-gen*
|
||||
done
|
||||
|
@@ -11,14 +11,14 @@ run()
|
||||
incdir="${top_srcdir}/include"
|
||||
|
||||
for inc in $(cd $incdir; find -name '*.h' | sort | cut -c3-); do
|
||||
cat >headers-gen.c <<SOURCE
|
||||
cat >headers-system-gen.c <<SOURCE
|
||||
#include <$inc>
|
||||
int main() { return 0; }
|
||||
SOURCE
|
||||
|
||||
echo "testing header $inc"
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-gen.c -o /dev/null
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o /dev/null
|
||||
echo
|
||||
|
||||
rm -f headers-gen.*
|
||||
rm -f headers-system-gen.*
|
||||
done
|
||||
|
@@ -24,6 +24,7 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
|
Reference in New Issue
Block a user