Description: |
|
---|
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? |
|
|
g_return_... is for incorrect programming; I don't think empty input is incorrect as there are places that explicitly call zephyr_send_message … |
|
|
Not sure about this one as it comes out of some parsed tree thing; it should probably be an explicit … |
|
-
-
libpurple/protocols/zephyr/zephyr.c (Diff revision 1) I don't see this being used earlier to need the prototype?
-
libpurple/protocols/zephyr/zephyr.c (Diff revision 1) 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
. -
libpurple/protocols/zephyr/zephyr.c (Diff revision 1) Not sure about this one as it comes out of some parsed tree thing; it should probably be an explicit
if
as well.
Description: |
|
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
|||||||||||||||||||||
Diff: |
Revision 2 (+43 -51) |