--- parser3/src/include/pa_table.h 2003/09/25 09:15:02 1.53 +++ parser3/src/include/pa_table.h 2006/11/01 17:20:09 1.59 @@ -1,14 +1,14 @@ /** @file Parser: table class decl. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_TABLE_H #define PA_TABLE_H -static const char* IDENT_TABLE_H="$Date: 2003/09/25 09:15:02 $"; +static const char * const IDENT_TABLE_H="$Date: 2006/11/01 17:20:09 $"; #include "pa_types.h" #include "pa_hash.h" @@ -89,7 +89,7 @@ public: } template - bool table_first_that(bool (*func)(Table& self, I* info), void* info, Action_options& o) { + bool table_first_that(bool (*func)(Table& self, I info), I info, Action_options& o) { if(!o.adjust(count())) return false; @@ -101,6 +101,8 @@ public: if(func(*this, info)) return true; + if(!row) + return false; } } else { // forward for(size_t to=row+o.limit; row=0 && index