Commit e1745b43 by Tom de Vries

Add error message for mismatched parentheses in reservation string

2013-06-11  Tom de Vries  <tom@codesourcery.com>

	* genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
	sequence_vect == NULL.

From-SVN: r199969
parent d9af3652
......@@ -1672,6 +1672,10 @@ gen_regexp_sequence (const char *str)
int i;
sequence_vect = get_str_vect (str, &els_num, ',', TRUE);
if (els_num == -1)
fatal ("unbalanced parentheses in reservation `%s'", str);
if (sequence_vect == NULL)
fatal ("invalid reservation `%s'", str);
if (els_num > 1)
{
sequence = XCREATENODEVAR (struct regexp, sizeof (struct regexp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment