[project] Change RtlCompareMemory to wv_memcmpeq
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 21 Nov 2010 10:25:29 +0000 (05:25 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 21 Nov 2010 10:25:29 +0000 (05:25 -0500)
commit1414d807f153b05d31701ece5b088d92df18b00f
treeed2dfcf5d19c3c4759c8232c67cf30e7c0e48e8b
parente9b94d9cffaf2a3cbfd52b05516a9cbd6c20ee5b
[project] Change RtlCompareMemory to wv_memcmpeq

We previously had patterns like:

  if (!(RtlCompareMemory(foo, bar, sizeof foo) == sizeof foo))

but now we have:

  if (!wv_memcmpeq(foo, bar, sizeof foo))

We've introduced a few new headers, which have the spirit of
mimicry of the C Standard Library....

'memcmpeq()' is completely bogus, however.

The MS compiler doesn't have '_Bool', so we use unsigned short
for the 'bool' type.  I hope that's good enough.
14 files changed:
WinVBlock.dev
src/aoe/driver.c
src/aoe/makedriver.bat
src/aoe/protocol.c
src/aoe/wv_string.c [new file with mode: 0644]
src/include/wv_stdbool.h [new file with mode: 0644]
src/include/wv_string.h [new file with mode: 0644]
src/winvblock/driver.c
src/winvblock/filedisk/grub4dos.c
src/winvblock/makedriver.bat
src/winvblock/probe.c
src/winvblock/ramdisk/grub4dos.c
src/winvblock/ramdisk/memdisk.c
src/winvblock/wv_string.c [new file with mode: 0644]