summaryrefslogtreecommitdiff
path: root/third_party/printf/printf_config.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-03-07 16:05:46 +0300
committerOxore <oxore@protonmail.com>2023-03-07 17:58:42 +0300
commit5f7d4d6e9f47d328e7c4ef71030bdc9e34892798 (patch)
tree1f4dbecf6b27e268c0590404399c5d5fd91965d0 /third_party/printf/printf_config.h
parente4a9be2a4f68781d318770296a50f4823c419805 (diff)
Get rid of libc, take just parts of it
Diffstat (limited to 'third_party/printf/printf_config.h')
-rw-r--r--third_party/printf/printf_config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/printf/printf_config.h b/third_party/printf/printf_config.h
new file mode 100644
index 0000000..075649e
--- /dev/null
+++ b/third_party/printf/printf_config.h
@@ -0,0 +1,22 @@
+#pragma once
+#ifndef PRINTF_CONFIG_H_
+#define PRINTF_CONFIG_H_
+
+#define PRINTF_SUPPORT_DECIMAL_SPECIFIERS 1
+#define PRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS 1
+#define PRINTF_SUPPORT_WRITEBACK_SPECIFIER 0
+#define PRINTF_SUPPORT_MSVC_STYLE_INTEGER_SPECIFIERS 1
+#define PRINTF_SUPPORT_LONG_LONG 1
+#define PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT 0
+#define PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD 0
+#define PRINTF_ALIAS_STANDARD_FUNCTION_NAMES 1
+
+#define PRINTF_INTEGER_BUFFER_SIZE 32
+#define PRINTF_DECIMAL_BUFFER_SIZE 32
+#define PRINTF_DEFAULT_FLOAT_PRECISION 6
+#define PRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
+#define PRINTF_LOG10_TAYLOR_TERMS 4
+#define PRINTF_CHECK_FOR_NUL_IN_FORMAT_SPECIFIER 1
+
+#endif // PRINTF_CONFIG_H_
+