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:
parent
940e0813be
commit
39f79b668b
@ -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) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Tests snprintf function call rewriting
|
||||
// Test simple formats
|
||||
|
||||
#include <snprintf.h>
|
||||
#include <sprintf.h>
|
||||
|
||||
char BUF[20];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user