Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,8 @@ void (* SymbolTable::error) (const char* ) = NULL; ...@@ -19,8 +19,8 @@ void (* SymbolTable::error) (const char* ) = NULL;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
SymbolTable::SymbolTable() SymbolTable::SymbolTable()
{ {
name_table.resize(6); name_table.resize(10);
tex_name_table.resize(6); tex_name_table.resize(10);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
SymbolTable::~SymbolTable() SymbolTable::~SymbolTable()
...@@ -79,8 +79,7 @@ int SymbolTable::AddSymbolDeclar(string name,Type type, string tex_name) ...@@ -79,8 +79,7 @@ int SymbolTable::AddSymbolDeclar(string name,Type type, string tex_name)
//The symbol exists, testing its type //The symbol exists, testing its type
if (symboltable[name].type == type){ if (symboltable[name].type == type){
cout << "Warning : symbol " << name << " declared more than once.\n"; cout << "Warning : symbol " << name << " declared more than once.\n";
return getID(name); return getID(name); }
}
else{ else{
string msg = "symbol " + name + " declared more than once with different types."; string msg = "symbol " + name + " declared more than once with different types.";
(* error) (msg.c_str()); (* error) (msg.c_str());
... ...
......
CPP = c++ CPP = c++
ifeq ($(DEBUG),yes) ifeq ($(DEBUG),yes)
CPPFLAGS = -mno-cygwin -ggdb -Wall CPPFLAGS = -mno-cygwin -ggdb -Wall
CPPFLAGS = -ggdb -Wall
else else
CPPFLAGS = -mno-cygwin -O1 CPPFLAGS = -mno-cygwin -O1
endif endif
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment