[asterisk-dev] [Code Review] Add aggregate operations for stuctures with string fields

wdoekes reviewboard at asterisk.org
Mon Feb 4 04:30:10 CST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2308/#review7797
-----------------------------------------------------------



trunk/tests/test_stringfields.c
<https://reviewboard.asterisk.org/r/2308/#comment14786>

            ast_string_field_set(&inst2, string2, "bar");
            ast_string_field_set(&inst2, string1, "foo");
            inst2.foo = 2;
    
    --> fail
    
    Intentional?


- wdoekes


On Feb. 3, 2013, 3:12 p.m., opticron wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2308/
> -----------------------------------------------------------
> 
> (Updated Feb. 3, 2013, 3:12 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> This change adds aggregate operations on all string fields within a structure for copying and comparison to greatly simplify code which needs to do so.  Traditionally, this is done by copying or comparing each field individually.
> 
> 
> Diffs
> -----
> 
>   trunk/include/asterisk/stringfields.h 380806 
>   trunk/tests/test_stringfields.c 380806 
> 
> Diff: https://reviewboard.asterisk.org/r/2308/diff
> 
> 
> Testing
> -------
> 
> Passes the new unit tests that test these new aggregate operations (also in this review).
> 
> 
> Thanks,
> 
> opticron
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130204/8741e5aa/attachment.htm>


More information about the asterisk-dev mailing list