git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7643 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-02-15 23:23:59 +00:00
parent cf73fe0afa
commit 131863171f
7 changed files with 88 additions and 88 deletions
+12 -12
View File
@@ -82,43 +82,43 @@ SWITCH_STANDARD_API(expr_function)
/* Create function list */
err = exprFuncListCreate(&f);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Init function list with internal functions */
err = exprFuncListInit(f);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Add custom function */
//err = exprFuncListAdd(f, my_func, "myfunc", 1, 1, 1, 1);
//if(err != EXPR_ERROR_NOERROR)
//if (err != EXPR_ERROR_NOERROR)
//goto error;
/* Create constant list */
err = exprValListCreate(&c);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Init constant list with internal constants */
err = exprValListInit(c);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Create variable list */
err = exprValListCreate(&v);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Create expression object */
err = exprCreate(&e, f, v, c, breaker, NULL);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Parse expression */
err = exprParse(e, (char *)expr);
if(err != EXPR_ERROR_NOERROR)
if (err != EXPR_ERROR_NOERROR)
goto error;
/* Enable soft errors */
@@ -153,19 +153,19 @@ SWITCH_STANDARD_API(expr_function)
done:
/* Do cleanup */
if(e) {
if (e) {
exprFree(e);
}
if(f) {
if (f) {
exprFuncListFree(f);
}
if(v) {
if (v) {
exprValListFree(v);
}
if(c) {
if (c) {
exprValListFree(c);
}