Commit 98ba8a1e authored by Maxime Perrotin's avatar Maxime Perrotin

Use lowercase when calling findFV

parent edd12069
...@@ -121,7 +121,7 @@ void C_End() ...@@ -121,7 +121,7 @@ void C_End()
); );
} }
if (get_context()->gw && (false == fv->is_component_type) && if (get_context()->gw && // (false == fv->is_component_type) &&
(NULL == fv->zipfile || get_context()->glue)) { (NULL == fv->zipfile || get_context()->glue)) {
GW_SDL_Backend(fv); GW_SDL_Backend(fv);
GW_Simulink_Backend(fv); GW_Simulink_Backend(fv);
......
...@@ -258,6 +258,7 @@ void GW_SDL_Interface(Interface * i) ...@@ -258,6 +258,7 @@ void GW_SDL_Interface(Interface * i)
void GW_SDL_Backend(FV * fv) void GW_SDL_Backend(FV * fv)
{ {
if (fv->system_ast->context->onlycv) return; if (fv->system_ast->context->onlycv) return;
// DEBUG CODE START
if ((sdl == fv->language || opengeode == fv->language)) { if ((sdl == fv->language || opengeode == fv->language)) {
printf("FV %s is in SDL\n", fv->name); printf("FV %s is in SDL\n", fv->name);
if (NULL == fv->instance_of) { if (NULL == fv->instance_of) {
...@@ -267,7 +268,8 @@ void GW_SDL_Backend(FV * fv) ...@@ -267,7 +268,8 @@ void GW_SDL_Backend(FV * fv)
printf("It IS AN INSTANCE OF %s\n", fv->instance_of); printf("It IS AN INSTANCE OF %s\n", fv->instance_of);
} }
} }
if ((sdl == fv->language || opengeode == fv->language) && (NULL == fv->instance_of)) { // DEBUG CODE END
if ((sdl == fv->language || opengeode == fv->language)) {
Create_New_SDL_Structure(fv); Create_New_SDL_Structure(fv);
FOREACH(i, Interface, fv->interfaces, { FOREACH(i, Interface, fv->interfaces, {
GW_SDL_Interface(i); GW_SDL_Interface(i);
......
...@@ -334,7 +334,7 @@ void Function_Semantic_Check(FV * fv) ...@@ -334,7 +334,7 @@ void Function_Semantic_Check(FV * fv)
} }
if (NULL != fv->instance_of) { if (NULL != fv->instance_of) {
FV *definition = FindFV (fv->instance_of); FV *definition = FindFV (string_to_lower(fv->instance_of));
if (definition == NULL) { if (definition == NULL) {
ERROR ERROR
("[ERROR] Component type \"%s\" (for instance \"%s\") not found.\n", ("[ERROR] Component type \"%s\" (for instance \"%s\") not found.\n",
......
Markdown is supported
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