-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Replace "new" variable #1782
Comments
Hi @hirotakaster, thank you for your report! I don't see a reason not to perform the suggested renaming if the current naming causes problems on some build systems. Do you have time to open a PR with the change? Thank you, |
Hi @hanno-arm , Okay, I would send a PR with this change. Thank you, |
Hi @hirotakaster, great, thank you! Best, |
@hirotakaster Since this causes your build to fail, I would consider this a bug, rather than an enhancement. |
ARM Internal Ref: IOTSSL-2374 |
@hirotakaster Could you please let us know what compiler options you're using? Note that Mbed TLS is a C library. It must be compiled with a C compiler. If you use a combined C/C++ compiler, make sure that you're using it in the correct mode. This should be automatic for a file name with the extension There are more differences between C and C++ than the addition of |
@gilles-peskine-arm |
According to an old issue #447
In that case, none of C++ reserved words could be used as identifiers. |
@irwir Thanks for mentioning this old issue! But I'm with Guido Vranken on this one: shoehorning C code into being compilable C++ is risky, and it is not needed to link C code into an application that is otherwise written in C++. |
@gilles-peskine-arm Thank you, then I should revoke & close this issue&PR? I understood your points and risk, and I see mbedTLS support/maintain under C language written in tutorial. |
Interesting example, though. Giving more meaningful name to variables is a positive change, not a risky one. |
Description
Enhancement
I would like to replace variable "*new" to "*new_cert" in
ssl_append_key_cert
function atssl_tls.c
like a following, because of my build with arm-none-eabi-gcc(c++) will fail on this "new" variable.now
to
The text was updated successfully, but these errors were encountered: