1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

fix for routingVars & varTypes declaration

This commit is contained in:
Gabor Adam Toth 2011-05-23 02:03:34 +02:00
parent 653fbcc156
commit 773a94788e
2 changed files with 10 additions and 4 deletions

View file

@ -120,9 +120,14 @@ unsigned int psyc_version ()
return 1; return 1;
} }
/// Routing vars in alphabetical order. /// Routing variables in alphabetical order.
extern const psycString PSYC_routingVars[]; extern const psycString psyc_routingVars[];
extern const psycMatchVar PSYC_varTypes[];
// 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? * Is this a routing variable name?

View file

@ -1,8 +1,8 @@
#include "lib.h" #include "lib.h"
#include <stdint.h> #include <stdint.h>
/// Routing variables in alphabetical order.
/// Routing variables in alphabetical order.
const psycString psyc_routingVars[] = const psycString psyc_routingVars[] =
{ {
PSYC_C2STR("_amount_fragments"), PSYC_C2STR("_amount_fragments"),
@ -26,6 +26,7 @@ const psycString psyc_routingVars[] =
//PSYC_C2STR("_using_modules"), // older PSYC //PSYC_C2STR("_using_modules"), // older PSYC
}; };
// Variable types in alphabetical order.
const psycMatchVar psyc_varTypes[] = const psycMatchVar psyc_varTypes[] =
{ {
{PSYC_C2STR("_amount"), PSYC_TYPE_AMOUNT}, {PSYC_C2STR("_amount"), PSYC_TYPE_AMOUNT},