Commit 41b3634d authored by michel's avatar michel
Browse files

corrected size of name_table and Tex_name_table

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@364 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 1f52067e
......@@ -19,8 +19,8 @@ void (* SymbolTable::error) (const char* ) = NULL;
//------------------------------------------------------------------------------
SymbolTable::SymbolTable()
{
name_table.resize(6);
tex_name_table.resize(6);
name_table.resize(10);
tex_name_table.resize(10);
}
//------------------------------------------------------------------------------
SymbolTable::~SymbolTable()
......@@ -79,8 +79,7 @@ int SymbolTable::AddSymbolDeclar(string name,Type type, string tex_name)
//The symbol exists, testing its type
if (symboltable[name].type == type){
cout << "Warning : symbol " << name << " declared more than once.\n";
return getID(name);
}
return getID(name); }
else{
string msg = "symbol " + name + " declared more than once with different types.";
(* error) (msg.c_str());
......
CPP = c++
ifeq ($(DEBUG),yes)
CPPFLAGS = -mno-cygwin -ggdb -Wall
CPPFLAGS = -ggdb -Wall
else
CPPFLAGS = -mno-cygwin -O1
endif
......
Supports Markdown
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