base: let parse_number_xxx return "arg too long"

Updates PR #184
This commit is contained in:
Nigel Tao committed 2026-10-21 12:04:44 +11:00
1 parent 7f70dda95c
commit d54d330601
5 files changed
+45

No files matched your search

+8
View File
@@ -10,6 +10,14 @@
// ---------------- String Conversions
// WUFFS_BASE__PARSE_NUMBER_XXX__SLICE_LEN_MAX_INCL is the largest acceptible
// length for the wuffs_base__parse_number_xxx functions' slice argument.
//
// It equals ((1 << 20) - 1), which is one less than 1 MiB.
#define WUFFS_BASE__PARSE_NUMBER_XXX__SLICE_LEN_MAX_INCL 0xFFFFF
// --------
// Options (bitwise or'ed together) for wuffs_base__parse_number_xxx
// functions. The XXX options apply to both integer and floating point. The FXX
// options apply only to floating point.