* gnutls.c: Use Emacs's memory allocators.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2011 08:03:15 +0000 (01:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2011 08:03:15 +0000 (01:03 -0700)
commit9cf9f756a98922e1042e34a04368e57287e43ea6
tree104bf6e02aeee3712d8b1e3a7ae515cf3283239b
parented008a6dd3efc2b317643eccf4aba15c00749d27
* gnutls.c: Use Emacs's memory allocators.

Without this change, the gnutls library would invoke malloc etc.
directly, which causes problems on non-SYNC_INPUT hosts, and which
runs afoul of improving memory_full behavior.
(fn_gnutls_global_set_mem_functions): New macro or function pointer.
(emacs_gnutls_global_init): Use it to specify xmalloc, xrealloc,
xfree instead of the default malloc, realloc, free.
(Fgnutls_boot): No need to check for memory allocation failure,
since xmalloc does that for us.
src/ChangeLog
src/gnutls.c