--- parser3/src/main/pa_dictionary.C 2003/10/03 09:40:57 1.19 +++ parser3/src/main/pa_dictionary.C 2007/04/23 10:30:31 1.24 @@ -1,11 +1,11 @@ /** @file Parser: dictionary class impl. - 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) */ -static const char* IDENT_DICTIONARY_C="$Date: 2003/10/03 09:40:57 $"; +static const char * const IDENT_DICTIONARY_C="$Date: 2007/04/23 10:30:31 $"; #include "pa_dictionary.h" #include "pa_exception.h" @@ -16,7 +16,7 @@ void pa_dictionary_add_first(Table::elem const String* a=row->get(0); // empty 'a' check if(a->is_empty()) { - throw Exception("parser.runtime", + throw Exception(PARSER_RUNTIME, 0, //&a, "dictionary table 'from' column elements must not be empty"); } @@ -61,7 +61,7 @@ static bool starts(Dictionary::Subst sub } Dictionary::Subst Dictionary::first_that_begins(const char* str) const { First_that_begins_info info; - if(info.line=starting_line_of[(unsigned char)*str]) { + if((info.line=starting_line_of[(unsigned char)*str])) { info.str=str; return substs.first_that(starts, &info); } else