[OpenSIPS-Devel] [opensips] Switch math_eval to use tinyexpr and remove conversion to RPN (#812)

rrb3942 notifications at github.com
Fri Feb 26 23:15:40 CET 2016


This makes math_eval us tinyexpr (https://github.com/codeplea/tinyexpr). This removes some limitations of math_eval (see issue #788) and adds additional features such as being able to call C math functions in the evaluation.

I also removed the methods for converting to RPN as they were no longer needed after this change. 
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/812

-- Commit Summary --

  * Switch math_eval to use tinyexpr and remove conversion to RPN

-- File Changes --

    M modules/mathops/README (6)
    M modules/mathops/doc/mathops_admin.xml (7)
    M modules/mathops/math_funcs.c (199)
    M modules/mathops/math_funcs.h (4)
    M modules/mathops/mathops.c (4)
    A modules/mathops/tinyexpr - LICENSE.md (22)
    A modules/mathops/tinyexpr.c (409)
    A modules/mathops/tinyexpr.h (75)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/812.patch
https://github.com/OpenSIPS/opensips/pull/812.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/812
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160226/27ff648d/attachment.htm>


More information about the Devel mailing list