Commit a763cb20 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

dirty fix

refs 2790
parent 6abfaa41
......@@ -32,7 +32,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 72BEDB7AB847ED5BFEEE902A741CCF18
* @ConQAT.Rating YELLOW Hash: ED8155B2EE8E04EE8BD8DF940D77D882
*/
public class CLanguageTypesTextGenerator {
/** The prefix used for generated C types. */
......@@ -58,7 +58,12 @@ public class CLanguageTypesTextGenerator {
if("String".equals(type.toString()) || "char*".equals(type.toString())) {
return "char* ";
}
return C_TYPE_PREFIX + type.toString() + ' ';
String typeString = type.toString();
int indexOfOpeningSquareBracket = typeString.indexOf("[");
if(indexOfOpeningSquareBracket >= 0) {
typeString = typeString.substring(0, indexOfOpeningSquareBracket);
}
return C_TYPE_PREFIX + typeString + ' ';
}
/** Creates the C enumeration type declaration text. */
......
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