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
_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to