aboutsummaryrefslogtreecommitdiffstats
path: root/src/xml.c
diff options
context:
space:
mode:
authorChong Yidong2012-09-23 17:16:57 +0800
committerChong Yidong2012-09-23 17:16:57 +0800
commitd07ff9db920196077333148f6db88525c8ba3151 (patch)
tree728ab8cebaa9efbfaa79b6076374435727d47db2 /src/xml.c
parent4d7e6e51dd4acecff466a28d958c50f34fc130b8 (diff)
downloademacs-d07ff9db920196077333148f6db88525c8ba3151.tar.gz
emacs-d07ff9db920196077333148f6db88525c8ba3151.zip
Remove LIBRARIES arg from w32_delayed_load and friends.
These always use Vdynamic_library_alist anyway. * src/image.c (Finit_image_library, lookup_image_type) (define_image_type): Remove now-unneeded second arg. (init_xpm_functions, init_png_functions, init_jpeg_functions) (init_tiff_functions, init_gif_functions, init_svg_functions): Arglist and w32_delayed_load calling convention changed. (gs_type): Remove init_gs_functions; there is no such function. * src/gnutls.c (init_gnutls_functions): Caller changed; remove arg. (Fgnutls_available_p): Caller changed. * src/xml.c (init_libxml2_functions, Flibxml_parse_html_region) (Flibxml_parse_xml_region): Likewise. * src/dispextern.h (struct image_type): Remove arg from init function. * src/w32.c (w32_delayed_load): Remove LIBRARIES argument; always use Vdynamic_library_alist. * lisp/image.el (image-type-available-p): Change caller to init-image-library.
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xml.c b/src/xml.c
index b668525cf26..a22ca208743 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -82,7 +82,7 @@ libxml2_loaded_p (void)
82#endif /* !WINDOWSNT */ 82#endif /* !WINDOWSNT */
83 83
84static int 84static int
85init_libxml2_functions (Lisp_Object libraries) 85init_libxml2_functions (void)
86{ 86{
87#ifdef WINDOWSNT 87#ifdef WINDOWSNT
88 if (libxml2_loaded_p ()) 88 if (libxml2_loaded_p ())
@@ -91,7 +91,7 @@ init_libxml2_functions (Lisp_Object libraries)
91 { 91 {
92 HMODULE library; 92 HMODULE library;
93 93
94 if (!(library = w32_delayed_load (libraries, Qlibxml2_dll))) 94 if (!(library = w32_delayed_load (Qlibxml2_dll)))
95 { 95 {
96 message ("%s", "libxml2 library not found"); 96 message ("%s", "libxml2 library not found");
97 return 0; 97 return 0;
@@ -257,7 +257,7 @@ DEFUN ("libxml-parse-html-region", Flibxml_parse_html_region,
257If BASE-URL is non-nil, it is used to expand relative URLs. */) 257If BASE-URL is non-nil, it is used to expand relative URLs. */)
258 (Lisp_Object start, Lisp_Object end, Lisp_Object base_url) 258 (Lisp_Object start, Lisp_Object end, Lisp_Object base_url)
259{ 259{
260 if (init_libxml2_functions (Vdynamic_library_alist)) 260 if (init_libxml2_functions ())
261 return parse_region (start, end, base_url, 1); 261 return parse_region (start, end, base_url, 1);
262 return Qnil; 262 return Qnil;
263} 263}
@@ -269,7 +269,7 @@ DEFUN ("libxml-parse-xml-region", Flibxml_parse_xml_region,
269If BASE-URL is non-nil, it is used to expand relative URLs. */) 269If BASE-URL is non-nil, it is used to expand relative URLs. */)
270 (Lisp_Object start, Lisp_Object end, Lisp_Object base_url) 270 (Lisp_Object start, Lisp_Object end, Lisp_Object base_url)
271{ 271{
272 if (init_libxml2_functions (Vdynamic_library_alist)) 272 if (init_libxml2_functions ())
273 return parse_region (start, end, base_url, 0); 273 return parse_region (start, end, base_url, 0);
274 return Qnil; 274 return Qnil;
275} 275}