From 248e74be24dc5808a7ef334c3b8b44b48f5bfbb3 Mon Sep 17 00:00:00 2001 From: tidwall Date: Fri, 3 Jan 2025 16:35:08 -0700 Subject: [PATCH] Update dependencies --- deps/.package | 10 +++++----- deps/ryu.h | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/deps/.package b/deps/.package index cfcf9d2..93c73d0 100644 --- a/deps/.package +++ b/deps/.package @@ -1,7 +1,7 @@ -import github.com/tidwall/json.c v1.1.6 -import github.com/tidwall/ryu v0.1.1 +import github.com/tidwall/json.c v1.1.7 +import github.com/tidwall/ryu v0.2.1 -sum 9e3b4df3dbdd94c9d933869f6b5d16eb7718b8cf json.c +sum cba8cb6c700fc38902e8ddcaf0b056adad3227be json.c sum 1a58747fed3daf14985bf9dea43aabea0de57c4d json.h -sum 334fc186823e4dd91b874de61cbb9773abadd006 ryu.c -sum 3c60be20bee0d1c756750a71ccf3db1eb83f5f5b ryu.h +sum 47d36a9e261a02c9ca14d628f614453e4198586a ryu.c +sum 78b34e436ad29756dd3a2f8df9b72f6a13ecb9af ryu.h diff --git a/deps/ryu.h b/deps/ryu.h index 6b61cb8..4a4d547 100644 --- a/deps/ryu.h +++ b/deps/ryu.h @@ -11,7 +11,14 @@ // If the returned length is greater than nbytes-1, then only a parital copy // occurred. // -// The fmt argument can be 'f' for full decimal or 'e' for scientific notation. +// The format is one of +// 'e' (-d.ddddedd, a decimal exponent) +// 'E' (-d.ddddEdd, a decimal exponent) +// 'f' (-ddd.dddd, no exponent) +// 'g' ('e' for large exponents, 'f' otherwise) +// 'G' ('E' for large exponents, 'f' otherwise) +// 'j' ('g' for large exponents, 'f' otherwise) (matches javascript format) +// 'J' ('G' for large exponents, 'f' otherwise) (matches javascript format) size_t ryu_string(double d, char fmt, char dst[], size_t nbytes); #endif