1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-01-31 03:34:42 +00:00

Fixed test. Added struct_model to platform .TGT-file. Closes #716

This commit is contained in:
jespergravgaard 2021-08-13 22:50:09 +02:00
parent 940e0813be
commit 39f79b668b
2 changed files with 8 additions and 1 deletions

View File

@ -112,6 +112,13 @@ public class CTargetPlatformParser {
targetPlatform.setVariableBuilderConfig(config);
}
}
{
final String structModel = platformJson.getString("struct_model", null);
if(structModel != null) {
boolean classic = "classic".equals(structModel);
targetPlatform.getVariableBuilderConfig().setStructModelClassic(classic);
}
}
{
final JsonObject defines = platformJson.getJsonObject("defines");
if(defines != null) {

View File

@ -1,7 +1,7 @@
// Tests snprintf function call rewriting
// Test simple formats
#include <snprintf.h>
#include <sprintf.h>
char BUF[20];