Eolian/Lexer: fix bug occuring during generation.

A string set by the lexer and used by the generator was set to NULL
instead of "constructor"/"destructor".
This commit is contained in:
Daniel Zaoui 2014-02-18 09:06:37 +02:00
parent 61b180448a
commit ba2cdd723d
2 changed files with 4 additions and 4 deletions

View File

@ -2797,13 +2797,13 @@ eo_tokenizer_database_fill(const char *filename)
const char *class = impl->meth_name;
if (!strcmp(class, "Eo_Base::constructor"))
{
Eolian_Function foo_id = database_function_new(NULL, DFLT_CONSTRUCTOR);
Eolian_Function foo_id = database_function_new("constructor", DFLT_CONSTRUCTOR);
database_class_function_add(kls->name, foo_id);
continue;
}
if (!strcmp(class, "Eo_Base::destructor"))
{
Eolian_Function foo_id = database_function_new(NULL, DFLT_DESTRUCTOR);
Eolian_Function foo_id = database_function_new("destructor", DFLT_DESTRUCTOR);
database_class_function_add(kls->name, foo_id);
continue;
}

View File

@ -1194,13 +1194,13 @@ eo_tokenizer_database_fill(const char *filename)
const char *class = impl->meth_name;
if (!strcmp(class, "Eo_Base::constructor"))
{
Eolian_Function foo_id = database_function_new(NULL, DFLT_CONSTRUCTOR);
Eolian_Function foo_id = database_function_new("constructor", DFLT_CONSTRUCTOR);
database_class_function_add(kls->name, foo_id);
continue;
}
if (!strcmp(class, "Eo_Base::destructor"))
{
Eolian_Function foo_id = database_function_new(NULL, DFLT_DESTRUCTOR);
Eolian_Function foo_id = database_function_new("destructor", DFLT_DESTRUCTOR);
database_class_function_add(kls->name, foo_id);
continue;
}