-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with HARD aliasing the standard function names #146
Comments
Relates to #141 . Will look into this, hopefully within the next couple of days. Thanks for reporting the issue! |
…definition mess: With the introduction of three options for standard library function aliasing behavior (none, soft and hard), we now have two boolean preprocessor definitions, `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT` and `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD` - but some of the code was still expecting `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES`. Now making sure both of these are set and respected. * Updated the README.md
@BenFreudbergKolmostar : Please check whether my commit to the development branch resolves the issue to your satisfaction. |
…definition mess: With the introduction of three options for standard library function aliasing behavior (none, soft and hard), we now have two boolean preprocessor definitions, `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT` and `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD` - but some of the code was still expecting `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES`. Now making sure both of these are set and respected. * Updated the README.md
@eyalroz Yes, I think it would. But shouldn't printf.c:line57 be "HARD", not "SOFT"? I tried to leave this comment over there directly but I'm not sure if it worked. Also, unrelated, but line 101/102 looks like a typo with two "INTERNALLY"s. |
…definition mess: With the introduction of three options for standard library function aliasing behavior (none, soft and hard), we now have two boolean preprocessor definitions, `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT` and `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD` - but some of the code was still expecting `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES`. Now making sure both of these are set and respected. * Updated the README.md
…definition mess: With the introduction of three options for standard library function aliasing behavior (none, soft and hard), we now have two boolean preprocessor definitions, `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT` and `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD` - but some of the code was still expecting `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES`. Now making sure both of these are set and respected. * Updated the README.md
@BenFreudbergKolmostar : Did see the comment. Please pull again (and note that previous commits are overridden now. |
@eyalroz Looks great, thanks! |
…definition mess: With the introduction of three options for standard library function aliasing behavior (none, soft and hard), we now have two boolean preprocessor definitions, `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT` and `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD` - but some of the code was still expecting `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES`. Now making sure both of these are set and respected. * Updated the README.md
…definition mess: With the introduction of three options for standard library function aliasing behavior (none, soft and hard), we now have two boolean preprocessor definitions, `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT` and `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD` - but some of the code was still expecting `PRINTF_ALIAS_STANDARD_FUNCTION_NAMES`. Now making sure both of these are set and respected. * Updated the README.md
It looks like there is some inconsistency introduced with the addition of
PRINTF_ALIAS_STANDARD_FUNCTION_NAMES_SOFT
which means that if you want to do HARD replacement, you must include bothPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1
andPRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD=1
. I fixed this on my local copy by getting rid ofPRINTF_ALIAS_STANDARD_FUNCTION_NAMES
altogether.I deleted:
printf/src/printf/printf.h
Lines 65 to 67 in f8ed5a9
and I changed:
printf/src/printf/printf.c
Line 57 in f8ed5a9
to
The documentation could also use an update to clarify this new feature.
Thanks!
The text was updated successfully, but these errors were encountered: