From f2f5302c5ab514ebf28f737fcc3ddb16f601421e Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Mon, 23 May 2011 02:03:34 +0200 Subject: [PATCH] fix for routingVars & varTypes declaration --- include/psyc.h | 11 ++++++++--- src/variable.c | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/include/psyc.h b/include/psyc.h index abcf9d3..b33e96a 100644 --- a/include/psyc.h +++ b/include/psyc.h @@ -120,9 +120,14 @@ unsigned int psyc_version () return 1; } -/// Routing vars in alphabetical order. -extern const psycString PSYC_routingVars[]; -extern const psycMatchVar PSYC_varTypes[]; +/// Routing variables in alphabetical order. +extern const psycString psyc_routingVars[]; + +// Variable types in alphabetical order. +extern const psycMatchVar psyc_varTypes[]; + +extern const size_t psyc_routingVarsNum; +extern const size_t psyc_varTypesNum; /** * Is this a routing variable name? diff --git a/src/variable.c b/src/variable.c index e9c96d7..472e105 100644 --- a/src/variable.c +++ b/src/variable.c @@ -1,8 +1,8 @@ #include "lib.h" #include -/// Routing variables in alphabetical order. +/// Routing variables in alphabetical order. const psycString psyc_routingVars[] = { PSYC_C2STR("_amount_fragments"), @@ -26,6 +26,7 @@ const psycString psyc_routingVars[] = //PSYC_C2STR("_using_modules"), // older PSYC }; +// Variable types in alphabetical order. const psycMatchVar psyc_varTypes[] = { {PSYC_C2STR("_amount"), PSYC_TYPE_AMOUNT},