Skip to content

Commit

Permalink
wiring
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Nov 24, 2023
1 parent 18938ad commit e3d2ea1
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.rusefi.ReaderStateImpl;
import com.rusefi.RusefiParseErrorStrategy;
import com.rusefi.newparse.ParseState;
import com.rusefi.newparse.outputs.SdLogWriter;
import com.rusefi.newparse.parsing.Definition;
import com.rusefi.output.*;
import com.rusefi.util.LazyFile;
Expand Down Expand Up @@ -98,7 +97,7 @@ private int handleYaml(Map<String, Object> data) throws IOException {
// tsOutputsDestination + File.separator + "/data_logs.ini"
// );

SdLogWriter sdLogWriter = new SdLogWriter("\"console/binary_log/log_fields_generated.h\"");
// SdLogWriter sdLogWriter = new SdLogWriter("console/binary_log/log_fields_generated.h");

EntryHandler handler = new EntryHandler() {
@Override
Expand Down Expand Up @@ -134,9 +133,9 @@ public void onEntry(String name, String javaName, String folder, String prepend,
}

if (constexpr != null) {
// sdCardFieldsConsumer.home = constexpr;
// sdCardFieldsConsumer.isPtr = isPtr;
// state.addDestination(sdCardFieldsConsumer::handleEndStruct);
sdCardFieldsConsumer.home = constexpr;
sdCardFieldsConsumer.isPtr = isPtr;
state.addDestination(sdCardFieldsConsumer::handleEndStruct);

outputValueConsumer.currentSectionPrefix = constexpr;
outputValueConsumer.conditional = conditional;
Expand Down Expand Up @@ -167,7 +166,9 @@ public void onEntry(String name, String javaName, String folder, String prepend,
// }
// }

sdLogWriter.writeSdLogs(parseState);
// if (constexpr != null) {
// sdLogWriter.writeSdLogs(parseState, constexpr + (isPtr ? "->" : "."));
// }
}

state.doJob();
Expand Down

0 comments on commit e3d2ea1

Please sign in to comment.