Skip to content

Changed error(...) to a weak function #239

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

Merged
merged 1 commit into from
Apr 1, 2014
Merged

Changed error(...) to a weak function #239

merged 1 commit into from
Apr 1, 2014

Conversation

neilt6
Copy link
Contributor

@neilt6 neilt6 commented Mar 31, 2014

Made error(...) a weak function so that it can be overridden in production projects. Also fixed several serial_api.c files that required stdlib.h, but were getting it from error.h.

Made error(...) a weak function so that it can be overridden in
production projects. Also fixed several serial_api.c files that required
stdlib.h, but were getting it from error.h.
@@ -16,6 +16,7 @@
// math.h required for floating point operations for baud rate calculation
#include <math.h>
#include <string.h>
#include <stdlib.h>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required for abs()

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 31, 2014

Hello,

A side note: you included notes, which is appreciated ! 👍 Thanks! Regarding those comments about abs() in serial code files, they could be actually merged into one or preferably stated in the commit message.

Regards,
0xc0170

@neilt6
Copy link
Contributor Author

neilt6 commented Mar 31, 2014

Ah, sorry, I guess I went a little bit overboard.

bogdanm added a commit that referenced this pull request Apr 1, 2014
Changed error(...) to a weak function
@bogdanm bogdanm merged commit fdcc1e3 into ARMmbed:master Apr 1, 2014
rajkan01 pushed a commit to rajkan01/mbed-os that referenced this pull request Mar 7, 2019
adbridge pushed a commit that referenced this pull request Apr 24, 2019
adbridge pushed a commit that referenced this pull request May 3, 2019
chrissnow pushed a commit to chrissnow/mbed-os that referenced this pull request May 15, 2019
urutva pushed a commit to urutva/mbed-os that referenced this pull request May 31, 2019
- Link to bug tracking: https://developer.trustedfirmware.org/T239

(cherry picked from commit 5f2e4b3)
(cherry picked from commit 5d41a2a)
urutva pushed a commit to urutva/mbed-os that referenced this pull request Jun 13, 2019
- Link to bug tracking: https://developer.trustedfirmware.org/T239

(cherry picked from commit 5f2e4b3)
(cherry picked from commit 5d41a2a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants