diff options
| author | Paul Eggert | 2014-12-26 09:32:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-12-28 00:33:27 -0800 |
| commit | e092accb6bb8aea08dab1796d707b3adce55a38c (patch) | |
| tree | f3f2bad267ce9f3f2ec61441a03447027ae3a3ea /src/ChangeLog | |
| parent | 1505643bb70ce66e86d6c72902fe7e9199e93606 (diff) | |
| download | emacs-e092accb6bb8aea08dab1796d707b3adce55a38c.tar.gz emacs-e092accb6bb8aea08dab1796d707b3adce55a38c.zip | |
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.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bdd1882c06a..9e3fb904b93 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,19 @@ | |||
| 1 | 2014-12-28 Paul Eggert <eggert@Penguin.CS.UCLA.EDU> | 1 | 2014-12-28 Paul Eggert <eggert@Penguin.CS.UCLA.EDU> |
| 2 | 2 | ||
| 3 | Wrap dll functions more simply | ||
| 4 | * decompress.c, gnutls.c, image.c, xml.c: | ||
| 5 | If WINDOWSNT, use '#define FOO fn_FOO' to wrap dll functions, | ||
| 6 | rather than the inverse when not WINDOWSNT. This isolates the | ||
| 7 | fn_* business into the WINDOWSNT-specific section of the code, | ||
| 8 | which makes it easier to maintain the generic code. | ||
| 9 | * decompress.c (DEF_ZLIB_FN, LOAD_ZLIB_FN): | ||
| 10 | * gnutls.c (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): | ||
| 11 | * image.c (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): | ||
| 12 | * xml.c (DEF_XML2_FN, LOAD_XML2_FN): | ||
| 13 | Remove. All uses replaced by DEF_DLL_FN. | ||
| 14 | * decompress.c (inflateInit2): Remove; no longer needed. | ||
| 15 | * w32.h (DEF_DLL_FN, LOAD_DLL_FN): New macros. | ||
| 16 | |||
| 3 | Port memory-full checking to GnuTLS 3.3 | 17 | Port memory-full checking to GnuTLS 3.3 |
| 4 | Instead of using gnutls_global_set_mem_functions, check every call | 18 | Instead of using gnutls_global_set_mem_functions, check every call |
| 5 | to a GnuTLS function that might return an indication of memory | 19 | to a GnuTLS function that might return an indication of memory |