forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Update mpaland/printf to eyalroz/printf fork (qmk#16163)
mpaland printf implementation was abandoned in ~2019 and the fork by eyalroz is now regarded to be the goto replacement of it. So this commit incoporates the changes needed to use this fork in QMK. Note that pointer ptrdiff_t is always supported since commit 51c90f93a97fdaef895783ecbe24569be0db7cb8
- Loading branch information
1 parent
c8d9398
commit bc89979
Showing
7 changed files
with
60 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
PRINTF_PATH = $(LIB_PATH)/printf | ||
PRINTF_PATH = $(LIB_PATH)/printf/src | ||
|
||
VPATH += $(PRINTF_PATH) | ||
SRC += $(PRINTF_PATH)/printf.c | ||
VPATH += $(PRINTF_PATH) $(PRINTF_PATH)/printf | ||
SRC += printf.c | ||
QUANTUM_SRC +=$(QUANTUM_DIR)/logging/print.c | ||
OPT_DEFS += -DPRINTF_DISABLE_SUPPORT_FLOAT | ||
OPT_DEFS += -DPRINTF_DISABLE_SUPPORT_EXPONENTIAL | ||
OPT_DEFS += -DPRINTF_DISABLE_SUPPORT_LONG_LONG | ||
OPT_DEFS += -DPRINTF_DISABLE_SUPPORT_PTRDIFF_T | ||
|
||
OPT_DEFS += -DPRINTF_SUPPORT_DECIMAL_SPECIFIERS=0 | ||
OPT_DEFS += -DPRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS=0 | ||
OPT_DEFS += -DPRINTF_SUPPORT_LONG_LONG=0 | ||
OPT_DEFS += -DPRINTF_SUPPORT_WRITEBACK_SPECIFIER=0 | ||
OPT_DEFS += -DSUPPORT_MSVC_STYLE_INTEGER_SPECIFIERS=0 | ||
OPT_DEFS += -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1 |