From db74d417293e937ab171addd937b7b6c00d44444 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 9 Jun 2010 18:22:25 +0200 Subject: inttostr: add a new function, inttostr, and tests The namesake function was not available. The existence of the template file, inttostr.c makes its addition nontrivial. * lib/anytostr.c: Rename from inttostr.c. (anytostr): Rename from inttostr. * lib/inttostr.c: New file. * modules/inttostr (Files): Add anytostr.c. (Makefile.am): Set lib_SOURCES instead of ... * m4/inttostr.m4: Remove uses of AC_LIBOBJ. * lib/imaxtostr.c: Update use. s/inttostr/anytostr/ * lib/offtostr.c: Likewise. * lib/uinttostr.c: Likewise. * lib/umaxtostr.c: Likewise. * modules/inttostr-tests: New file. * tests/test-inttostr.c: New file. Test these functions. --- modules/inttostr-tests | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/inttostr-tests (limited to 'modules/inttostr-tests') diff --git a/modules/inttostr-tests b/modules/inttostr-tests new file mode 100644 index 0000000000..69716d2827 --- /dev/null +++ b/modules/inttostr-tests @@ -0,0 +1,13 @@ +Files: +tests/test-inttostr.c + +Depends-on: +intprops +inttypes +snprintf-posix + +configure.ac: + +Makefile.am: +TESTS += test-inttostr +check_PROGRAMS += test-inttostr -- cgit v1.2.1