refactor out WIN32 tests from code
authorAndy Green <andy.green@linaro.org>
Wed, 2 Apr 2014 06:25:10 +0000 (14:25 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 2 Apr 2014 06:25:10 +0000 (14:25 +0800)
commit158e804cb7edbe3607ca29fd76ce9c1e58fb3a0a
tree8d537cccebec75c82a269506ae4de79f74e6dcbd
parent03cf1dde39c680dc24b207add7aaf7d9a0bcc4d3
refactor out WIN32 tests from code

This gets rid of all the platform-dependent #ifdef stuff and
migrates it into the new lws-plat-xxx.c files.

These are then included in a one-time test in libwebsockets.c
according basically to Windows or not.

The idea is from now on, all Windows-specific code should go in
lws-plat-win.c, where any kind of Windows perversion like DWORD
is fine.

Any new functions going in there should be named lws_plat_...
and be defined in all the lws-plat-xxx.c file (currently just
win32 and unix platforms are supported).

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-handshake.c
lib/client.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/lws-plat-unix.c
lib/lws-plat-win.c
lib/output.c
lib/private-libwebsockets.h
lib/server.c
lib/sha-1.c
test-server/test-fraggle.c