summaryrefslogtreecommitdiff
path: root/README.git
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-09-25 16:12:21 -0400
committerPaul Smith <psmith@gnu.org>2022-09-25 16:57:31 -0400
commitf3640ecf4fa5edd34d1bd4409557a2fccf1585a8 (patch)
tree06f2791af65e582d586618ff058d752aea4c8401 /README.git
parentc4e232e44f00be75ba58bc5f12e7562a62028fe9 (diff)
downloadmake-git-f3640ecf4fa5edd34d1bd4409557a2fccf1585a8.tar.gz
Provide new functions to convert long long to string
The previous attempt to use PRI* macros to avoid compiler-specific printf format specifiers didn't work because we are using raw long long type, not the uintX_t types. On systems where long and long long are the same size, uint64_t might be type "long" and PRId64 is just "ld". Instead write new functions that convert [unsigned] long long to a string and call those instead. * src/makeint.h: Declare make_lltoa() and make_ulltoa(). * src/misc.c (make_lltoa): New function that writes a long long value into a provided buffer. Return the buffer for ease-of-use. (make_ulltoa): Ditto, for unsigned long long. * src/function.c (func_wordlist): Call these new methods. Also rework the error strings so we share the translated string. * src/dir.c (print_dir_data_base): Call the new methods instead of using MSVC macros.
Diffstat (limited to 'README.git')
0 files changed, 0 insertions, 0 deletions