]> code.delx.au - gnu-emacs/commit
Wrap dll functions more simply
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Dec 2014 17:32:06 +0000 (09:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Dec 2014 08:33:27 +0000 (00:33 -0800)
commite092accb6bb8aea08dab1796d707b3adce55a38c
treef3f2bad267ce9f3f2ec61441a03447027ae3a3ea
parent1505643bb70ce66e86d6c72902fe7e9199e93606
Wrap dll functions more simply

* decompress.c, gnutls.c, image.c, xml.c:
If WINDOWSNT, use '#define FOO fn_FOO' to wrap dll functions,
rather than the inverse when not WINDOWSNT.  This isolates the
fn_* business into the WINDOWSNT-specific section of the code,
which makes it easier to maintain the generic code.
* decompress.c (DEF_ZLIB_FN, LOAD_ZLIB_FN):
* gnutls.c (DEF_GNUTLS_FN, LOAD_GNUTLS_FN):
* image.c (DEF_IMGLIB_FN, LOAD_IMGLIB_FN):
* xml.c (DEF_XML2_FN, LOAD_XML2_FN):
Remove.  All uses replaced by DEF_DLL_FN.
* w32.h (DEF_DLL_FN, LOAD_DLL_FN): New macros.
src/ChangeLog
src/decompress.c
src/gnutls.c
src/image.c
src/w32.h
src/xml.c