commit f095cec8ce306df1483b4603998248040c68a524
parent b0066ae3ca26f1017fca8efd31a474f59304f696
Author: Andri Yngvason <andri@yngvason.is>
Date: Sat, 6 Feb 2021 16:45:06 +0000
strconv: stou: extract types into own file
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/strconv/stou.ha b/strconv/stou.ha
@@ -3,13 +3,6 @@ use types;
use ascii;
use encoding::utf8;
-// Indicates that the input string is not an integer
-export type invalid = void;
-
-// Indicates that the input number is too large to be represented by the
-// requested data type
-export type overflow = void;
-
// Converts a string to a u64 in base 10. If the string contains any non-numeric
// characters, or if it's empty, [strconv::invalid] is returned. If the number
// is too large to be represented by a u64, [strconv::overflow] is returned.
diff --git a/strconv/types.ha b/strconv/types.ha
@@ -0,0 +1,6 @@
+// Indicates that the input string is not an integer
+export type invalid = void;
+
+// Indicates that the input number is too large to be represented by the
+// requested data type
+export type overflow = void;