From e8df5877aa9bbeeb34ab0fe13f41d8096919c748 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 17 Feb 2015 17:15:00 +0100 Subject: Improved handling of and error messages in tha case of too many fields for a command. Adapted StackTest to the new behaviour and added new unit test. Fixed bug #76 --- src/core/parser/stack/Stack.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/parser/stack/Stack.hpp') diff --git a/src/core/parser/stack/Stack.hpp b/src/core/parser/stack/Stack.hpp index 76eefd9..b67ce82 100644 --- a/src/core/parser/stack/Stack.hpp +++ b/src/core/parser/stack/Stack.hpp @@ -219,6 +219,13 @@ private: */ HandlerInfo &lastInfo(); + /** + * Ends all handlers that currently are not inside a field and already had + * a default field. This method is called whenever the data() and command() + * events are reached. + */ + void endOverdueHandlers(); + /** * Ends the current handler and removes the corresponding element from the * stack. -- cgit v1.2.3