mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-02-20 00:29:10 +00:00
Fixed test. Added struct_model to platform .TGT-file. Closes #716
This commit is contained in:
parent
940e0813be
commit
39f79b668b
@ -112,6 +112,13 @@ public class CTargetPlatformParser {
|
|||||||
targetPlatform.setVariableBuilderConfig(config);
|
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");
|
final JsonObject defines = platformJson.getJsonObject("defines");
|
||||||
if(defines != null) {
|
if(defines != null) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Tests snprintf function call rewriting
|
// Tests snprintf function call rewriting
|
||||||
// Test simple formats
|
// Test simple formats
|
||||||
|
|
||||||
#include <snprintf.h>
|
#include <sprintf.h>
|
||||||
|
|
||||||
char BUF[20];
|
char BUF[20];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user