<p>This makes math_eval us tinyexpr (<a href="https://github.com/codeplea/tinyexpr">https://github.com/codeplea/tinyexpr</a>). This removes some limitations of math_eval (see issue <a href="https://github.com/OpenSIPS/opensips/issues/788" class="issue-link js-issue-link" data-url="https://github.com/OpenSIPS/opensips/issues/788" data-id="133079575" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#788</a>) and adds additional features such as being able to call C math functions in the evaluation.</p>

<p>I also removed the methods for converting to RPN as they were no longer needed after this change. </p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/812'>https://github.com/OpenSIPS/opensips/pull/812</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Switch math_eval to use tinyexpr and remove conversion to RPN</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-0">modules/mathops/README</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-1">modules/mathops/doc/mathops_admin.xml</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-2">modules/mathops/math_funcs.c</a>
    (199)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-3">modules/mathops/math_funcs.h</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-4">modules/mathops/mathops.c</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-5">modules/mathops/tinyexpr - LICENSE.md</a>
    (22)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-6">modules/mathops/tinyexpr.c</a>
    (409)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/812/files#diff-7">modules/mathops/tinyexpr.h</a>
    (75)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/812.patch'>https://github.com/OpenSIPS/opensips/pull/812.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/812.diff'>https://github.com/OpenSIPS/opensips/pull/812.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/812">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcifYrI_swrMcesnSJyOAx36xMGBLwks5poMYMgaJpZM4HkOQi.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/812"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>