Skip to content
Snippets Groups Projects
Commit ae2d7f35 authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Parse 'true', 'false', and 'null'

parent d03637f2
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,18 @@ static boolean parse_word(action_val_t *value, char *word) ...@@ -152,6 +152,18 @@ static boolean parse_word(action_val_t *value, char *word)
*value = ACTION_STRING_VAL(string); *value = ACTION_STRING_VAL(string);
} }
else if (fastcmp(word, "true"))
{
*value = ACTION_BOOLEAN_VAL(true);
}
else if (fastcmp(word, "false"))
{
*value = ACTION_BOOLEAN_VAL(false);
}
else if (fastcmp(word, "null"))
{
*value = ACTION_NULL_VAL;
}
else else
{ {
strupr(word); strupr(word);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment