diff options
| author | Chong Yidong | 2012-09-23 17:16:57 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-23 17:16:57 +0800 |
| commit | d07ff9db920196077333148f6db88525c8ba3151 (patch) | |
| tree | 728ab8cebaa9efbfaa79b6076374435727d47db2 /src/xml.c | |
| parent | 4d7e6e51dd4acecff466a28d958c50f34fc130b8 (diff) | |
| download | emacs-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -82,7 +82,7 @@ libxml2_loaded_p (void) | |||
| 82 | #endif /* !WINDOWSNT */ | 82 | #endif /* !WINDOWSNT */ |
| 83 | 83 | ||
| 84 | static int | 84 | static int |
| 85 | init_libxml2_functions (Lisp_Object libraries) | 85 | init_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, | |||
| 257 | If BASE-URL is non-nil, it is used to expand relative URLs. */) | 257 | If 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, | |||
| 269 | If BASE-URL is non-nil, it is used to expand relative URLs. */) | 269 | If 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 | } |