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},