X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ffrontend%2Fscanner.l;h=ab8b80daf560459822714f473ebc7a5adc76f21f;hp=65ec9edceb79ff73769e03e37046123971d9b73f;hb=5ced2b9eb4d4def7d3ad5b1172004293e7a68e0e;hpb=a818a27f0f5bf001c212659c0a09247671056a08 diff --git a/src/frontend/scanner.l b/src/frontend/scanner.l index 65ec9ed..ab8b80d 100644 --- a/src/frontend/scanner.l +++ b/src/frontend/scanner.l @@ -59,6 +59,7 @@ static struct { { "FILTER", FILTER }, { "IN", IN }, { "IS", IS }, + { "LAST", LAST }, { "LIST", LIST }, { "LOOKUP", LOOKUP }, { "MATCHING", MATCHING }, @@ -66,7 +67,9 @@ static struct { { "NULL", NULL_T }, { "OR", OR }, { "START", START }, + { "STORE", STORE }, { "TIMESERIES", TIMESERIES }, + { "UPDATE", UPDATE }, /* object types */ { "host", HOST_T }, @@ -83,6 +86,7 @@ static struct { { "age", AGE_T }, { "interval", INTERVAL_T }, { "backend", BACKEND_T }, + { "value", VALUE_T }, }; void @@ -237,7 +241,7 @@ time ([0-9]{1,2}:[0-9]{1,2}(:[0-9]{1,2}(\.[0-9]{1,9})?)?) assert(tmp); tmp = strchr(tmp + 1, ':'); if (! tmp) - strncat(time, ":00", sizeof(time)); + strncat(time, ":00", sizeof(time) - strlen(time) - 1); if (! strptime(time, "%H:%M:%S", &tm)) { char errmsg[1024];