Move hulk.writef hex character strings out of data section
This commit is contained in:
parent
ba9cf30e67
commit
4d88810fc1
@ -88,8 +88,8 @@ size_t writef(string s, va_list args, ch_out_fn ch_out)
|
|||||||
*/
|
*/
|
||||||
private size_t write_hex(ulong v, bool upper, char pad, size_t width, ch_out_fn ch_out)
|
private size_t write_hex(ulong v, bool upper, char pad, size_t width, ch_out_fn ch_out)
|
||||||
{
|
{
|
||||||
static __gshared string hex_chars_lower = "0123456789abcdef";
|
static __gshared const(char)[16] hex_chars_lower = "0123456789abcdef";
|
||||||
static __gshared string hex_chars_upper = "0123456789ABCDEF";
|
static __gshared const(char)[16] hex_chars_upper = "0123456789ABCDEF";
|
||||||
static __gshared char[16] buf;
|
static __gshared char[16] buf;
|
||||||
size_t i;
|
size_t i;
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user