[Asterisk-code-review] vector: Additional string vector definitions. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Sun Jan 14 15:16:57 CST 2018


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

Change subject: vector: Additional string vector definitions.
......................................................................


Patch Set 5:

(1 comment)

I've addressed your other comments locally, will publish once it's decided what to do about the ast_strsep suggestion.

https://gerrit.asterisk.org/#/c/7871/5/main/strings.c
File main/strings.c:

https://gerrit.asterisk.org/#/c/7871/5/main/strings.c@411
PS5, Line 411: 	while ((cur = strsep(&buf, delim))) {
             : 		if (excludes_cmp && AST_VECTOR_GET_CMP(dest, cur, !excludes_cmp)) {
> A potential option is to ast_strip() blanks and skip empty strings.  This w
The current purpose of this function is to parse the module dependencies (see the other reviews in this series).  I don't think it matters for the current use case, but maybe in the future something else would need elements to be stripped?

Are you suggesting that ast_vector_string_split would accept a flags argument to be passed on to ast_strsep?  If not would we just always pass AST_STRSEP_TRIM?



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1bf02a1efeb2baeea11c59c557d39dd1197494d7
Gerrit-Change-Number: 7871
Gerrit-PatchSet: 5
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Sun, 14 Jan 2018 21:16:57 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180114/aaf65378/attachment.html>


More information about the asterisk-code-review mailing list