[Asterisk-code-review] astobj2: Create case-insensitive variants of container funct... (asterisk[13])

Corey Farrell asteriskteam at digium.com
Tue Jan 2 13:37:59 CST 2018


Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/7774 )

Change subject: astobj2: Create case-insensitive variants of container function macros.
......................................................................


Patch Set 1:

(2 comments)

https://gerrit.asterisk.org/#/c/7774/1/include/asterisk/astobj2.h
File include/asterisk/astobj2.h:

https://gerrit.asterisk.org/#/c/7774/1/include/asterisk/astobj2.h@2084
PS1, Line 2084: 	const char *right_key = arg; \
> The macros assume that the key is a char string.  It doesn't have to be.  T
This is why I added the doxygen \warning stating that this macro API could change.  If we need something else in the future we can decide if this macro should become more complex or if the 'something else' should just have it's own macro.


https://gerrit.asterisk.org/#/c/7774/1/include/asterisk/astobj2.h@2093
PS1, Line 2093: 		cmp = partial_key_cmp(object_left->field, right_key, strlen(right_key)); \
> A partial key search could pass in a different type to avoid doing a strlen
I think this goes with the first comment - do we want to add the complexity needed to support this now?



-- 
To view, visit https://gerrit.asterisk.org/7774
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: I11af8c6a0c43380a42732553f519c667abb842cf
Gerrit-Change-Number: 7774
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Tue, 02 Jan 2018 19:37:59 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180102/7103bddf/attachment-0001.html>


More information about the asterisk-code-review mailing list