- Description:
-
~ - Add
zephyr_tzc_escape_msg
declaration and move declarations before implementations.
Also slightly changelocal_zephyr_normalize
declaration* Early return from functions
~ - Get
strlen(message)
once
~ - Convert
while
tofor
~ - Simplify escaping
~ - Remove nulling of last char since
newmsg
already initialized to 0's
~ - Add
zephyr_tzc_escape_msg
declaration and move declarations before implementations.
Also slightly changelocal_zephyr_normalize
signature
~ - Early return from functions
~ - Get
strlen(message)
once
~ - Convert
while
tofor
~ - Simplify escaping
+ - Remove nulling of last char since
newmsg
already initialized to 0's
- Add
zephyr_tzc_escape_msg and zephyr_tzc_deescape_str refactoring
Review Request #434 — Created Jan. 15, 2021 and submitted
- Move declarations before implementations. Also slightly change
local_zephyr_normalize
signature - Early return from functions
- Get
strlen(message)
once - Convert
while
tofor
- Simplify escaping
- Remove nulling of last char since
newmsg
already initialized to 0's
Compile.
Description | From | Last Updated |
---|---|---|
I don't see this being used earlier to need the prototype? |
QuLogic | |
g_return_... is for incorrect programming; I don't think empty input is incorrect as there are places that explicitly call zephyr_send_message … |
QuLogic | |
Not sure about this one as it comes out of some parsed tree thing; it should probably be an explicit … |
QuLogic |
-
-
-
g_return_...
is for incorrect programming; I don't think empty input is incorrect as there are places that explicitly callzephyr_send_message
with an empty string. This should be a plainif
. -
Not sure about this one as it comes out of some parsed tree thing; it should probably be an explicit
if
as well.
- Description:
-
~ - Add
zephyr_tzc_escape_msg
declaration and move declarations before implementations.
Also slightly changelocal_zephyr_normalize
signature
~ - Move declarations before implementations. Also slightly change
local_zephyr_normalize
signature
- Early return from functions
- Get
strlen(message)
once
- Convert
while
tofor
- Simplify escaping
- Remove nulling of last char since
newmsg
already initialized to 0's
- Add
- Commit:
-
fd95bb1e055312f17845e9ae
- Diff:
-
Revision 2 (+43 -51)