forked from mpaland/printf
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
bugSomething isn't workingSomething isn't workingregressionA feature or aspect which worked properly in the past, no longer doesA feature or aspect which worked properly in the past, no longer does
Description
I tried to use the alias function names define, and as best I can tell it didn't do anything. Looking at the code, it isn't clear to me how it's supposed to work. I am on the latest 27 Sep commit.
#ifdef PRINTF_ALIAS_STANDARD_FUNCTION_NAMES
# define printf_ printf_
# define sprintf_ sprintf_
# define vsprintf_ vsprintf_
# define snprintf_ snprintf_
# define vsnprintf_ vsnprintf_
# define vprintf_ vprintf_
#endif
// ... some stuff here ...
#ifdef PRINTF_ALIAS_STANDARD_FUNCTION_NAMES
# undef printf_
# undef sprintf_
# undef vsprintf_
# undef snprintf_
# undef vsnprintf_
# undef vprintf_
#endif
I temporarily hand-edited my local printf.h
file and went back to way function name aliasing worked in the previous 17 Aug commit. This works, and I understand why it works (unlike the current commit).
#ifdef PRINTF_ALIAS_STANDARD_FUNCTION_NAMES
# define printf printf_
# define sprintf sprintf_
# define vsprintf vsprintf_
# define snprintf snprintf_
# define vsnprintf vsnprintf_
# define vprintf vprintf_
#endif
// ... some stuff here ...
I did read the issue #14 notes, but they didn't explain what I'm experiencing. Regarding the 27 Sep commit, am I missing something about how to make it work and/or understanding how it should work?
Thanks,
-Chris
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingregressionA feature or aspect which worked properly in the past, no longer doesA feature or aspect which worked properly in the past, no longer does