[reSIProcate] make pedantic stack runtime selectable, not compile-time

John Gregg jgregg at aylus.com
Thu Jun 5 10:08:20 CDT 2014


The only place that cares about the conditional flag PEDANTIC_STACK is 
one block of code in TransactionState.cxx. All I've done here is put a 
boolean flag in SipStack with an accessor, settable from the app, and 
look at the flag at runtime to see whether to execute the block of code. 
I made the SipStack constructor default this to true. Of course I also 
removed support for PEDANTIC_STACK from the top-level config stuff.

Because of unrelated prior local modifications to some of these files, 
the line numbers might not match up exactly, but they are based off 1.9.6.

I think this would be a useful change to put in the code going forward.

Thanks,

-John Gregg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h.in.diff
Type: text/x-patch
Size: 358 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140605/19f91376/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.ac.diff
Type: text/x-patch
Size: 594 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140605/19f91376/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.diff
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140605/19f91376/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SipStack.cxx.diff
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140605/19f91376/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SipStack.hxx.diff
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140605/19f91376/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TransactionState.cxx.diff
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140605/19f91376/attachment-0005.bin>


More information about the resiprocate-devel mailing list