- Fix critical EXI encoding error -109 (EXI_ERROR_UNKOWN_EVENT) by adding proper structure initialization * Added init_iso1BodyType() call before setting message type flags in XML parsing * Prevents garbage values in unused message type flags that caused wrong grammar paths - Rename enhanced_exi_viewer to V2GDecoder for consistency * Updated build.bat to build V2GDecoder instead of enhanced_exi_viewer * Maintains all existing functionality with improved reliability - Add comprehensive structure debugging capabilities * Created structure dump functions to output complete document state * Added struct_exi.txt and struct_xml.txt for comparing parsed vs original structures - Enhance output formatting for encoding operations * Clean hex-only output for encoding mode (similar to XML decode mode) * Removed debug clutter for production use while preserving debugging code - Add test infrastructure with minimal_test.xml for focused testing * Validates CurrentDemandReq message encoding with minimal required fields - Improve encoder debugging with position tracking in iso1EXIDatatypesEncoder.c * Added debug points to track exact failure locations during encoding 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
366 B
Batchfile
20 lines
366 B
Batchfile
@echo off
|
|
echo Building V2GDecoder...
|
|
|
|
gcc -o V2GDecoder V2GDecoder.c ^
|
|
src/iso1/*.c ^
|
|
src/iso2/*.c ^
|
|
src/din/*.c ^
|
|
src/codec/*.c ^
|
|
-I./src/codec ^
|
|
-I./src/iso1 ^
|
|
-I./src/iso2 ^
|
|
-I./src/din
|
|
|
|
if %ERRORLEVEL% EQU 0 (
|
|
echo Build successful! V2GDecoder.exe created.
|
|
) else (
|
|
echo Build failed with error code %ERRORLEVEL%
|
|
)
|
|
|
|
pause |