diff options
author | Jim Meyering <meyering@redhat.com> | 2010-06-09 18:22:25 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-06-10 15:16:51 +0200 |
commit | db74d417293e937ab171addd937b7b6c00d44444 (patch) | |
tree | 0fe8790cef6e3d582bc911ea5bf848427da4c56e /lib/imaxtostr.c | |
parent | 47e899ad11a04647942b39dd501bfc2381e9b2f0 (diff) | |
download | gnulib-db74d417293e937ab171addd937b7b6c00d44444.tar.gz |
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.
Diffstat (limited to 'lib/imaxtostr.c')
-rw-r--r-- | lib/imaxtostr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imaxtostr.c b/lib/imaxtostr.c index 34ef96c450..d2a0429b0d 100644 --- a/lib/imaxtostr.c +++ b/lib/imaxtostr.c @@ -1,4 +1,4 @@ -#define inttostr imaxtostr +#define anytostr imaxtostr #define inttype intmax_t #define inttype_is_signed 1 -#include "inttostr.c" +#include "anytostr.c" |