-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
core: move NTOHL and friends into byteorder.h #1984
Conversation
/** | ||
* @brief Convert from host byte order to network byte order, 16 bit. | ||
* @see byteorder_htons() | ||
* @param[in] v The integer to convert. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same indentation as the other comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then they are all weird. ;-b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You call it weird, I call it readable. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proper answer is probably that I indented everything to the length of @param[in,out]
so even if an in-out parameter was added, everything would still be properly aligned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting of the param block with some newlines would improve the readability, I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but that's not part of this PR.
Big brother is watching you btw ;-) |
ACK |
@LudwigOrtmann, wanna review? |
Can we get a second review? It's a core change. |
Counter question: Has anyone tested with a real network application, preferable on real hardware? |
You could, I guess. :) |
I tested |
rebased |
Tested and worked: ACK |
core: move NTOHL and friends into byteorder.h
No description provided.