This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
So this version uses new function dwarf_vma_print function for printf-messages, which are getting localized.
Tested for x86_64-w64-mingw32 and x86_64-pc-linux-gnu. Ok for apply?
+static const char * +dwarf_vma_print (const char *fmtch, bfd_vma value)
+{ + static int buf_pos = 0; + static struct dwarf_vma_print_buf { + char place[64]; + } buf[16];
+ char fmt[32]; + char *ret; + + sprintf (fmt, "%%%s%s", BFD_VMA_FMT, fmtch); + ret = &buf[buf_pos++].place[0];
+ buf_pos &= 15;
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |