[OpenSIPS-Devel] [opensips] Mathops extension (#144)
Stéphane Alnet
notifications at github.com
Sat Nov 30 01:13:35 CET 2013
This changeset modifies the `mathops` module by adding a `math_rpn` function which provides access (in an easily extensible way) to many more operations than the default `math_eval` parser, especially functions (the need for `exp` was the reason I wrote this). The `math_rpn` parser produces its output steps the way the original `math_eval` parser does, so that if the parsing is ever moved to fixup-time, the computed steps can be used without regards for the parser.
(The `math_eval` parser could also be modified to support the new operations but I didn't try to do that since the RPN syntax achieved what I needed.)
Submitting for review.
You can merge this Pull Request by running:
git pull https://github.com/shimaore/opensips mathops_extension
Or you can view, comment on it, or merge it online at:
https://github.com/OpenSIPS/opensips/pull/144
-- Commit Summary --
* Mathops extensions
* Built README
-- File Changes --
M modules/mathops/README (91)
M modules/mathops/doc/mathops.xml (7)
M modules/mathops/doc/mathops_admin.xml (67)
M modules/mathops/math_funcs.c (286)
M modules/mathops/math_funcs.h (8)
M modules/mathops/mathops.c (21)
-- Patch Links --
https://github.com/OpenSIPS/opensips/pull/144.patch
https://github.com/OpenSIPS/opensips/pull/144.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20131129/581f955b/attachment.htm>
More information about the Devel
mailing list