Module: sip-router
Branch: kamailio_3.0
Commit: a84cfc60a2b1cbbb9b0ba0a9ba80acd1e2030e25
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a84cfc6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Feb 9 00:29:26 2010 +0100
core: allow int parameters to module functions
- sync with master branch
- int param are converted automatically to str, therefore backward
compatibility is ensured and module functions still get only str
parameters
---
cfg.y | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/cfg.y b/cfg.y
index 9266e2e..c41f4eb 100644
--- a/cfg.y
+++ b/cfg.y
@@ -3204,7 +3204,6 @@ func_params:
;
func_param:
intno {
-#if 0
if (mod_func_action->val[1].u.number < MAX_ACTIONS-2) {
mod_func_action->val[mod_func_action->val[1].u.number+2].type =
NUMBER_ST;
@@ -3214,9 +3213,6 @@ func_param:
} else {
yyerror("Too many arguments\n");
}
-#else
- yyerror("Function parameter with integer value not allowed\n");
-#endif
}
| STRING {
if (mod_func_action->val[1].u.number < MAX_ACTIONS-2) {