[TOOLS_BIN2C]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 24 Jun 2015 19:54:19 +0000 (19:54 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 24 Jun 2015 19:54:19 +0000 (19:54 +0000)
commitf4c0c8f78c67ca712dc3dc72d4c66d1e7c069e62
tree805bb053508d051650f27822726664bd9f091a81
parent81d3bf265414b2b1e0b4a77ca8c279fef01f5f79
[TOOLS_BIN2C]
- Fix a GCC warning (error on Macs) concerning the printf "%Iu" specifier.
- To make sure data included by bin2c, that need to be interpreted as a (long) string, is correctly NULL-terminated, introduce an output format called "STR": this creates a long character array using the "\xXX" format.
- To circumvent a silly limitation of MSVC (all versions?) about the maximum length (65535 bytes) of a char string (aka. char MyArray[] = "...my_long_string...";), introduced yet another output format called "BINSTR" which creates an array of bytes that is NULL-terminated (aka. char MyArray[] = {0xde, 0xad, 0xbe, 0xef, 0x00};).
- Finally, the output format "BIN" is the regular bin2c format (simple array of bytes).

[HAL_PCIDATA][FREELDR_INSTALL]
Use the above-described functionality (for HAL_PCIDATA, use BINSTR format because the PciVendors data is otherwise too large to be stored in "char_string" format).

svn path=/trunk/; revision=68255
reactos/boot/freeldr/install/CMakeLists.txt
reactos/boot/freeldr/install/install.c
reactos/hal/halx86/pcidata.cmake
reactos/tools/bin2c.c