}
}
-typedef struct keyword
+typedef struct JsonPathKeyword
{
int16 len;
bool lowercase;
int val;
- const char *keyword;
-} keyword;
+ const char *keyword;
+} JsonPathKeyword;
/*
* Array of key words should be sorted by length and then
* alphabetical order
*/
-static const keyword keywords[] = {
+static const JsonPathKeyword keywords[] = {
{ 2, false, IS_P, "is"},
{ 2, false, TO_P, "to"},
{ 3, false, ABS_P, "abs"},
static int
checkSpecialVal()
{
- int res = IDENT_P;
- int diff;
- const keyword *StopLow = keywords,
- *StopHigh = keywords + lengthof(keywords),
- *StopMiddle;
+ int res = IDENT_P;
+ int diff;
+ const JsonPathKeyword *StopLow = keywords,
+ *StopHigh = keywords + lengthof(keywords),
+ *StopMiddle;
if (scanstring.len > keywords[lengthof(keywords) - 1].len)
return res;