[asterisk-dev] [Code Review] Add aggregate operations for stuctures with string fields
Mark Michelson
reviewboard at asterisk.org
Mon Feb 4 15:12:22 CST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2308/#review7800
-----------------------------------------------------------
trunk/include/asterisk/stringfields.h
<https://reviewboard.asterisk.org/r/2308/#comment14789>
As a memory saver, it would be a good idea to free all of the copy's string field pools before setting all of the string fields from the orig.
Also this should return a pass/fail result.
- Mark
On Feb. 4, 2013, 1:08 p.m., opticron wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2308/
> -----------------------------------------------------------
>
> (Updated Feb. 4, 2013, 1:08 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/61585183/attachment-0001.htm>
More information about the asterisk-dev
mailing list