all fields should have TS info
This commit is contained in:
parent
7b6da35920
commit
c80a230e2b
Binary file not shown.
|
@ -12,9 +12,7 @@ import static com.rusefi.ConfigField.BOOLEAN_T;
|
||||||
* 1/15/15
|
* 1/15/15
|
||||||
*/
|
*/
|
||||||
public class ConfigStructure {
|
public class ConfigStructure {
|
||||||
|
private static final String ALIGNMENT_FILL_AT = "alignmentFill_at_";
|
||||||
public static final String ALIGNMENT_FILL = "alignmentFill";
|
|
||||||
private static final String ALIGNMENT_FILL_AT = ALIGNMENT_FILL + "_at_";
|
|
||||||
|
|
||||||
public final String name;
|
public final String name;
|
||||||
public final String comment;
|
public final String comment;
|
||||||
|
|
|
@ -70,11 +70,7 @@ public class TSProjectConsumer implements ConfigurationConsumer {
|
||||||
|
|
||||||
tsPosition += size;
|
tsPosition += size;
|
||||||
} else if (configField.getTsInfo() == null) {
|
} else if (configField.getTsInfo() == null) {
|
||||||
if (!configField.getName().toLowerCase().contains(ConfigStructure.ALIGNMENT_FILL.toLowerCase()) && !configField.getName().toLowerCase().contains("unused")) {
|
|
||||||
throw new IllegalArgumentException("Need TS info for " + configField.getName() + " at "+ prefix);
|
throw new IllegalArgumentException("Need TS info for " + configField.getName() + " at "+ prefix);
|
||||||
}
|
|
||||||
tsHeader.write(";no TS info - skipping " + prefix + configField.getName() + " offset " + tsPosition);
|
|
||||||
tsPosition += configField.getArraySize() * configField.getElementSize();
|
|
||||||
} else if (configField.getArraySize() != 1) {
|
} else if (configField.getArraySize() != 1) {
|
||||||
tsHeader.write("\t" + addTabsUpTo(nameWithPrefix, LENGTH) + "\t\t= array, ");
|
tsHeader.write("\t" + addTabsUpTo(nameWithPrefix, LENGTH) + "\t\t= array, ");
|
||||||
tsHeader.write(TypesHelper.convertToTs(configField.getType()) + ",");
|
tsHeader.write(TypesHelper.convertToTs(configField.getType()) + ",");
|
||||||
|
|
Loading…
Reference in New Issue